Drupal 8  8.0.2
ThemeTestController Class Reference
Inheritance diagram for ThemeTestController:

Public Member Functions

 functionTemplateOverridden ()
 
 testInfoStylesheets ()
 
 testTemplate ()
 
 testInlineTemplate ()
 
 testSuggestion ()
 
 testRequestListener ()
 
 suggestionProvided ()
 
 suggestionAlter ()
 
 generalSuggestionAlter ()
 
 specificSuggestionAlter ()
 
 functionSuggestionAlter ()
 
 suggestionAlterInclude ()
 
 nonHtml ()
 
 preprocessSuggestions ()
 

Detailed Description

Controller routines for theme test routes.

Member Function Documentation

functionSuggestionAlter ( )

Menu callback for testing suggestion alter hooks with theme functions.

functionTemplateOverridden ( )

A theme template that overrides a theme function.

Returns
array Render array containing a theme.
generalSuggestionAlter ( )

Menu callback for testing hook_theme_suggestions_alter().

nonHtml ( )

Controller to ensure that no theme is initialized.

Returns
The json response with the theme initialized information.

References Drupal\theme().

Here is the call graph for this function:

preprocessSuggestions ( )

Controller for testing preprocess functions with theme suggestions.

specificSuggestionAlter ( )

Menu callback for testing suggestion alter hooks with specific suggestions.

suggestionAlter ( )

Menu callback for testing suggestion alter hooks with template files.

suggestionAlterInclude ( )

Menu callback for testing includes with suggestion alter hooks.

suggestionProvided ( )

Menu callback for testing suggestion alter hooks with template files.

testInfoStylesheets ( )

Adds stylesheets to test theme .info.yml property processing.

Returns
array A render array containing custom stylesheets.
testInlineTemplate ( )

Tests the inline template functionality.

Returns
array A render array containing an inline template.
testRequestListener ( )

Tests themed output generated in a request listener.

Returns
string Content in theme_test_output GLOBAL.
testSuggestion ( )

Calls a theme hook suggestion.

Returns
string An HTML string containing the themed output.

References Drupal\theme().

Here is the call graph for this function:

testTemplate ( )

Tests template overriding based on filename.

Returns
array A render array containing a theme override.

References Drupal\theme().

Here is the call graph for this function:


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