Drupal 8  8.0.2
SystemController Class Reference
Inheritance diagram for SystemController:

Public Member Functions

 __construct (SystemManager $systemManager, QueryFactory $queryFactory, ThemeAccessCheck $theme_access, FormBuilderInterface $form_builder, ThemeHandlerInterface $theme_handler, MenuLinkTreeInterface $menu_link_tree)
 
 overview ($link_id)
 
 compactPage ($mode)
 
 systemAdminMenuBlockPage ()
 
 themesPage ()
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $queryFactory
 
 $systemManager
 
 $themeAccess
 
 $formBuilder
 
 $themeHandler
 
 $menuLinkTree
 

Detailed Description

Returns responses for System routes.

Constructor & Destructor Documentation

__construct ( SystemManager  $systemManager,
QueryFactory  $queryFactory,
ThemeAccessCheck  $theme_access,
FormBuilderInterface  $form_builder,
ThemeHandlerInterface  $theme_handler,
MenuLinkTreeInterface  $menu_link_tree 
)

Constructs a new SystemController.

Parameters
\Drupal\system\SystemManager$systemManagerSystem manager service.
\Drupal\Core\Entity\Query\QueryFactory$queryFactoryThe entity query object.
\Drupal\Core\Theme\ThemeAccessCheck$theme_accessThe theme access checker service.
\Drupal\Core\Form\FormBuilderInterface$form_builderThe form builder.
\Drupal\Core\Extension\ThemeHandlerInterface$theme_handlerThe theme handler.
\Drupal\Core\Menu\MenuLinkTreeInterfaceThe menu link tree service.

References Drupal\formBuilder().

Here is the call graph for this function:

Member Function Documentation

compactPage (   $mode)

Sets whether the admin menu is in compact mode or not.

Parameters
string$modeValid values are 'on' and 'off'.
Returns
static create ( ContainerInterface  $container)
static

{}

overview (   $link_id)

Provide the administration overview page.

Parameters
string$link_idThe ID of the administrative path link for which to display child links.
Returns
array A renderable array of the administration overview page.

References CacheableMetadata\createFromObject(), Drupal\currentUser(), t(), and Drupal\url().

Here is the call graph for this function:

systemAdminMenuBlockPage ( )

Provides a single block from the administration menu as a page.

themesPage ( )

Returns a theme listing.

Returns
string An HTML string of the theme listing page.
Todo:
Move into ThemeController.

References Drupal\config(), Drupal\formBuilder(), Url\fromRoute(), Drupal\moduleHandler(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: