Total Complexity | 1 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class SearchAdmin extends ModelAdmin |
||
16 | { |
||
17 | /** |
||
18 | * @var string Add a pretty magnifying glass to the sidebar menu |
||
19 | */ |
||
20 | private static $menu_icon_class = 'font-icon-search'; |
||
|
|||
21 | |||
22 | /** |
||
23 | * @var string Where to find me |
||
24 | */ |
||
25 | private static $url_segment = 'searchadmin'; |
||
26 | |||
27 | /** |
||
28 | * @var string My name |
||
29 | */ |
||
30 | private static $menu_title = 'Search'; |
||
31 | |||
32 | /** |
||
33 | * List of all managed {@link DataObject}s in this interface. {@link ModelAdmin::$managed_models} |
||
34 | * |
||
35 | * @config |
||
36 | * @var array|string |
||
37 | */ |
||
38 | private static $managed_models = [ |
||
39 | SearchSynonym::class, |
||
40 | SearchLog::class, |
||
41 | DirtyClass::class |
||
42 | ]; |
||
43 | |||
44 | |||
45 | /** |
||
46 | * Make sure the custom CSS for highlighting in the GridField is loaded |
||
47 | */ |
||
48 | public function init() |
||
55 |