1 | <?php |
||
3 | class ImageBlock extends Block |
||
4 | { |
||
5 | /** |
||
6 | * @return string |
||
7 | */ |
||
8 | 9 | public function singular_name() |
|
12 | |||
13 | /** |
||
14 | * @return string |
||
15 | */ |
||
16 | 1 | public function plural_name() |
|
17 | { |
||
18 | 1 | return _t('ImageBlock.PLURALNAME', 'Image Blocks'); |
|
19 | } |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private static $has_one = array( |
||
25 | 'Image' => 'Image', |
||
26 | ); |
||
27 | |||
28 | /** |
||
29 | * @return FieldList |
||
30 | */ |
||
31 | 1 | public function getCMSFields() |
|
40 | } |