| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ElementContent extends BaseElement |
||
| 9 | { |
||
| 10 | private static $icon = 'font-icon-block-content'; |
||
|
|
|||
| 11 | |||
| 12 | private static $db = [ |
||
| 13 | 'HTML' => 'HTMLText' |
||
| 14 | ]; |
||
| 15 | |||
| 16 | private static $table_name = 'ElementContent'; |
||
| 17 | |||
| 18 | private static $singular_name = 'content block'; |
||
| 19 | |||
| 20 | private static $plural_name = 'content blocks'; |
||
| 21 | |||
| 22 | private static $description = 'HTML text block'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Re-title the HTML field to Content |
||
| 26 | * |
||
| 27 | * {@inheritDoc} |
||
| 28 | */ |
||
| 29 | public function getCMSFields() |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getSummary() |
||
| 40 | { |
||
| 41 | return DBField::create_field('HTMLText', $this->HTML)->Summary(20); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getType() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |