@@ -16,36 +16,36 @@ |
||
| 16 | 16 | class SampleManageableObjectPageController extends \PageController implements TestOnly |
| 17 | 17 | { |
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @var array |
|
| 21 | - */ |
|
| 22 | - private static $allowed_actions = [ |
|
| 23 | - 'Form', |
|
| 24 | - ]; |
|
| 25 | - |
|
| 26 | - /** |
|
| 27 | - * @var array |
|
| 28 | - */ |
|
| 29 | - private static $extensions = [ |
|
| 30 | - ManageableControllerExtension::class |
|
| 31 | - ]; |
|
| 32 | - |
|
| 33 | - /** |
|
| 34 | - * @var string |
|
| 35 | - */ |
|
| 36 | - private static $managed_object = SampleManageableDataObject::class; |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * |
|
| 40 | - */ |
|
| 41 | - public function init() |
|
| 42 | - { |
|
| 43 | - parent::init(); |
|
| 44 | - Requirements::clear(); |
|
| 45 | - } |
|
| 46 | - |
|
| 47 | - public function Form() |
|
| 48 | - { |
|
| 49 | - return ManageableDataObjectForm::create($this, 'Form', $this->config()->get('managed_object')); |
|
| 50 | - } |
|
| 19 | + /** |
|
| 20 | + * @var array |
|
| 21 | + */ |
|
| 22 | + private static $allowed_actions = [ |
|
| 23 | + 'Form', |
|
| 24 | + ]; |
|
| 25 | + |
|
| 26 | + /** |
|
| 27 | + * @var array |
|
| 28 | + */ |
|
| 29 | + private static $extensions = [ |
|
| 30 | + ManageableControllerExtension::class |
|
| 31 | + ]; |
|
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * @var string |
|
| 35 | + */ |
|
| 36 | + private static $managed_object = SampleManageableDataObject::class; |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * |
|
| 40 | + */ |
|
| 41 | + public function init() |
|
| 42 | + { |
|
| 43 | + parent::init(); |
|
| 44 | + Requirements::clear(); |
|
| 45 | + } |
|
| 46 | + |
|
| 47 | + public function Form() |
|
| 48 | + { |
|
| 49 | + return ManageableDataObjectForm::create($this, 'Form', $this->config()->get('managed_object')); |
|
| 50 | + } |
|
| 51 | 51 | } |