Skip to content
Snippets Groups Projects
Commit 4b36aab5 authored by catch's avatar catch
Browse files

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

parent 85798b8e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -93,13 +93,6 @@ public function setThemeRegistry(Registry $theme_registry) { ...@@ -93,13 +93,6 @@ public function setThemeRegistry(Registry $theme_registry) {
return $this; return $this;
} }
/**
* {@inheritdoc}
*/
public function render($hook, array $variables) {
return $this->theme($hook, $variables);
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
...@@ -137,11 +130,9 @@ public function setActiveTheme(ActiveTheme $active_theme) { ...@@ -137,11 +130,9 @@ public function setActiveTheme(ActiveTheme $active_theme) {
} }
/** /**
* 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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment