Created
April 19, 2018 21:42
-
-
Save thezenmonkey/b8d3ffa25981105c42dc4980a08fa051 to your computer and use it in GitHub Desktop.
Extending Element List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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