Magnum34 /
SilverStripeSVGGO
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Magnum34\SilverStripeSVGGO\Admin; |
||
| 4 | |||
| 5 | use SilverStripe\Admin\ModelAdmin; |
||
| 6 | use Magnum34\SilverStripeSVGGO\Models\IconSVG; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Created by PhpStorm. |
||
| 10 | * User: mariusz |
||
| 11 | * Date: 19.07.19 |
||
| 12 | * Time: 09:36 |
||
| 13 | */ |
||
| 14 | |||
| 15 | class IconsAdmin extends ModelAdmin |
||
| 16 | { |
||
| 17 | private static $url_segment = 'icons'; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 18 | |||
| 19 | private static $managed_models = [ |
||
|
0 ignored issues
–
show
|
|||
| 20 | IconSVG::class, |
||
| 21 | |||
| 22 | ]; |
||
| 23 | |||
| 24 | private static $menu_icon_class = 'font-icon-picture'; |
||
|
0 ignored issues
–
show
|
|||
| 25 | |||
| 26 | private static $menu_title = 'Icons'; |
||
|
0 ignored issues
–
show
|
|||
| 27 | |||
| 28 | public function getEditForm($id = null, $fields = null) |
||
| 29 | { |
||
| 30 | |||
| 31 | $form = parent::getEditForm($id, $fields); |
||
| 32 | |||
| 33 | return $form; |
||
| 34 | } |
||
| 35 | |||
| 36 | } |
||
| 37 |