SilverStripe\Admin\CMSMenu::get_cms_classes
A utility funciton to retrieve subclasses of a given class that are instantiable (ie, not abstract) and have a valid menu title.
Sorted by url_priority config.
Signature
public function get_cms_classes([string
$root = NULL,
[boolean
$recursive = true,
[string
$sort = self::MENU_PRIORITY]]] )
Parameters
$root
— string- The root class to begin finding subclasses
$recursive
— boolean- Look for subclasses recursively?
$sort
— string- Name of config on which to sort. Can be 'menu_priority' or 'url_priority'
Returns
- array
- Valid, unique subclasses
Line | Task |
---|---|
379+ | A variation of this function could probably be moved to {@link ClassInfo} |
384 | Make these actual abstract classes |