Issue #2531972 by dawehner: Move ThemeManager::theme() to ThemeManager::render()
parent
85798b8e1c
commit
4b36aab5fa
|
@ -93,13 +93,6 @@ class ThemeManager implements ThemeManagerInterface {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function render($hook, array $variables) {
|
|
||||||
return $this->theme($hook, $variables);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -137,11 +130,9 @@ class ThemeManager implements ThemeManagerInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates themed output (internal use only).
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @see \Drupal\Core\Render\RendererInterface::render();
|
|
||||||
*/
|
*/
|
||||||
protected function theme($hook, $variables = array()) {
|
public function render($hook, array $variables) {
|
||||||
static $default_attributes;
|
static $default_attributes;
|
||||||
|
|
||||||
$active_theme = $this->getActiveTheme();
|
$active_theme = $this->getActiveTheme();
|
||||||
|
|
Loading…
Reference in New Issue