1 | <?php |
||
6 | class EmbedCodeBlock extends Block |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @return string |
||
11 | */ |
||
12 | 13 | public function singular_name() |
|
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | 1 | public function plural_name() |
|
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private static $description = 'Block providing ability to embed code (generally javascript)'; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private static $db = [ |
||
33 | 'Code' => 'HTMLText', |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * @return \FieldList |
||
38 | */ |
||
39 | 1 | public function getCMSFields() |
|
51 | |||
52 | } |