| 1 | <?php |
||
| 6 | class ElementalAdmin extends ModelAdmin { |
||
|
|
|||
| 7 | |||
| 8 | private static $managed_models = array( |
||
| 9 | 'BaseElement' |
||
| 10 | ); |
||
| 11 | |||
| 12 | private static $menu_title = 'Content Blocks'; |
||
| 13 | |||
| 14 | private static $url_segment = 'elemental'; |
||
| 15 | |||
| 16 | private static $menu_icon = "elemental/images/blocks.svg"; |
||
| 17 | |||
| 18 | public function getEditForm($id = null, $fields = null) { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Exclude our linked elements |
||
| 31 | * |
||
| 32 | * @return DataList |
||
| 33 | */ |
||
| 34 | public function getList() { |
||
| 40 | } |
||
| 41 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.