Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ThemeManager.php

function ThemeManager::alter

Overrides ThemeManagerInterface::alter

1 call to ThemeManager::alter()
ThemeManager::buildThemeHookSuggestions in core/lib/Drupal/Core/Theme/ThemeManager.php
Builds theme hook suggestions for a theme hook with variables.

File

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

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);
}
RSS feed
Powered by Drupal