1 | <?php |
||
3 | class VideoBlock extends Block |
||
4 | { |
||
5 | /** |
||
6 | * @var string |
||
7 | */ |
||
8 | private static $singular_name = 'Video Block'; |
||
9 | |||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private static $plural_name = 'Video Blocks'; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private static $has_one = array( |
||
19 | 'Video' => 'SilverStripeYouTubeVideo', |
||
20 | ); |
||
21 | |||
22 | /** |
||
23 | * @return FieldList |
||
24 | */ |
||
25 | public function getCMSFields() |
||
45 | } |
||
46 |