function ThemeManager::alter
Same name in other branches
- 9 core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::alter()
- 10 core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::alter()
- 11.x core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::alter()
Overrides ThemeManagerInterface::alter
1 call to ThemeManager::alter()
- ThemeManager::render in core/
lib/ Drupal/ Core/ Theme/ ThemeManager.php - Generates themed output.
File
-
core/
lib/ Drupal/ Core/ Theme/ ThemeManager.php, line 456
Class
- ThemeManager
- Provides the default implementation of a theme manager.
Namespace
Drupal\Core\ThemeCode
public function alter($type, &$data, &$context1 = NULL, &$context2 = NULL) {
$theme = $this->getActiveTheme();
$this->alterForTheme($theme, $type, $data, $context1, $context2);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.