8.5.x ThemeManagerInterface.php ThemeManagerInterface::render($hook, array $variables)
8.0.x ThemeManagerInterface.php ThemeManagerInterface::render($hook, array $variables)
8.1.x ThemeManagerInterface.php ThemeManagerInterface::render($hook, array $variables)
8.2.x ThemeManagerInterface.php ThemeManagerInterface::render($hook, array $variables)
8.3.x ThemeManagerInterface.php ThemeManagerInterface::render($hook, array $variables)
8.4.x ThemeManagerInterface.php ThemeManagerInterface::render($hook, array $variables)
8.6.x ThemeManagerInterface.php ThemeManagerInterface::render($hook, array $variables)

Generates themed output.

See the Default theme implementations topic for details.

Parameters

string $hook: The name of the theme hook to call.

array $variables: An associative array of theme variables.

Return value

string|\Drupal\Component\Render\MarkupInterface The rendered output, or a Markup object.

1 method overrides ThemeManagerInterface::render()
ThemeManager::render in core/lib/Drupal/Core/Theme/ThemeManager.php
Generates themed output.

File

core/lib/Drupal/Core/Theme/ThemeManagerInterface.php, line 27

Class

ThemeManagerInterface
Provides a high level access to the active theme and methods to use it.

Namespace

Drupal\Core\Theme

Code

public function render($hook, array $variables);