You are here

public function ThemeManager::alter in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::alter()
  2. 9 core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::alter()

File

core/lib/Drupal/Core/Theme/ThemeManager.php, line 442

Class

ThemeManager
Provides the default implementation of a theme manager.

Namespace

Drupal\Core\Theme

Code

public function alter($type, &$data, &$context1 = NULL, &$context2 = NULL) {
  $theme = $this
    ->getActiveTheme();
  $this
    ->alterForTheme($theme, $type, $data, $context1, $context2);
}