function ThemeManagerInterface::render

Same name in other branches
  1. 9 core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::render()
  2. 8.9.x core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::render()
  3. 11.x core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::render()

Generates themed output.

See the Default theme implementations topic for details.

Parameters

string|string[] $hook: The name of the theme hook to call or an array of names of theme hooks to call.

array $variables: An associative array of theme variables.

Return value

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

File

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

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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.