Drupal 8  8.0.2
MenuTestController Class Reference
Inheritance diagram for MenuTestController:

Public Member Functions

 __construct (ThemeManagerInterface $theme_manager, ThemeNegotiatorInterface $theme_negotiator, RouteMatchInterface $route_match)
 menuTestCallback ()
 titleCallback (array $_title_arguments=array(), $_title= '')
 themePage ($inherited)
 breadcrumbTitleCallback ()

Static Public Member Functions

static create (ContainerInterface $container)

Protected Attributes


Detailed Description

Controller routines for menu_test routes.

Constructor & Destructor Documentation

__construct ( ThemeManagerInterface  $theme_manager,
ThemeNegotiatorInterface  $theme_negotiator,
RouteMatchInterface  $route_match 

Constructs the MenuTestController object.

\Drupal\menu_test\Controller\ThemeManagerInterface$theme_managerThe theme manager.
\Drupal\menu_test\Controller\ThemeNegotiatorInterface$theme_negotiatorThe theme negotiator.
\Drupal\menu_test\Controller\RouteMatchInterface$route_matchThe current route match.

References Drupal\routeMatch().

Here is the call graph for this function:

Member Function Documentation

breadcrumbTitleCallback ( )

A title callback for XSS breadcrumb check.

static create ( ContainerInterface  $container)


menuTestCallback ( )

Some known placeholder content which can be used for testing.

string A string that can be used for comparison.
themePage (   $inherited)

Page callback: Tests the theme negotiation functionality.

bool$inheritedTRUE when the requested page is intended to inherit the theme of its parent.
string A string describing the requested custom theme and actual theme being used for the current page request.

References Drupal\routeMatch().

Here is the call graph for this function:

titleCallback ( array  $_title_arguments = array(),
  $_title = '' 

A title callback method for test routes.

array$_title_argumentsOptional array from the route defaults.
string$_titleOptional _title string from the route defaults.
string The route title.

References t().

Here is the call graph for this function:

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