Skip to content

Instantly share code, notes, and snippets.

@thezenmonkey
Created April 19, 2018 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thezenmonkey/b8d3ffa25981105c42dc4980a08fa051 to your computer and use it in GitHub Desktop.
Save thezenmonkey/b8d3ffa25981105c42dc4980a08fa051 to your computer and use it in GitHub Desktop.
Extending Element List
<?php
use DNADesign\ElementalList\Model\ElementList;
class SectionElement extends ElementList
{
private static $db = [
'FullWidth' => 'Boolean'
];
private static $controller_template = 'NoElementHolder';
private static $template = 'NoElementHolder';
private static $icon = 'font-icon-block-layout';
private static $singular_name = 'Section';
private static $plural_name = 'Sections';
private static $description = 'Top Level Sectioning Element for Page';
private static $table_name = 'SectionElement';
public function getType()
{
return _t(__CLASS__ . '.BlockType', 'Section');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment