SystemManager
class SystemManager (View source)
System Manager Service.
Constants
| REQUIREMENT_OK |
Requirement severity -- Requirement successfully met. |
| REQUIREMENT_WARNING |
Requirement severity -- Warning condition; proceed but flag warning. |
| REQUIREMENT_ERROR |
Requirement severity -- Error condition; abort installation. |
Properties
| protected ModuleHandlerInterface | $moduleHandler | Module handler service. |
|
| protected RequestStack | $requestStack | The request stack. |
|
| protected MenuLinkTreeInterface | $menuTree | The menu link tree manager. |
|
| protected MenuActiveTrailInterface | $menuActiveTrail | The active menu trail service. |
|
| protected array | $menuItems | A static cache of menu items. |
Methods
Constructs a SystemManager object.
Checks for requirement severity.
Displays the site status report. Can also be used as a pure check.
Extracts the highest severity from the requirements array.
Loads the contents of a menu block.
Provide a single block on the administration overview page.
Details
__construct(ModuleHandlerInterface $module_handler, RequestStack $request_stack, MenuLinkTreeInterface $menu_tree, MenuActiveTrailInterface $menu_active_trail)
Constructs a SystemManager object.
bool
checkRequirements()
Checks for requirement severity.
array
listRequirements()
Displays the site status report. Can also be used as a pure check.
The
getMaxSeverity($requirements)
Extracts the highest severity from the requirements array.
array
getBlockContents()
Loads the contents of a menu block.
This function is often a destination for these blocks. For example, 'admin/structure/types' needs to have a destination to be valid in the Drupal menu system, but too much information there might be hidden, so we supply the contents of the block.
array
getAdminBlock(MenuLinkInterface $instance)
Provide a single block on the administration overview page.