Issue #2531972 by dawehner: Move ThemeManager::theme() to ThemeManager::render()

8.0.x
Nathaniel Catchpole 2015-07-21 12:18:30 +01:00
parent 85798b8e1c
commit 4b36aab5fa
1 changed files with 2 additions and 11 deletions

View File

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