public ThemeManagerInterface::alterForTheme(ActiveTheme $theme, $type, &$data, &$context1 = NULL, &$context2 = NULL)
Provides an alter hook for a specific theme.
Similar to ::alter, it also invokes the alter hooks for the base themes.
\Drupal\Core\Theme\ActiveTheme $theme: A manually specified theme.
string|array $type: A string describing the type of the alterable $data.
mixed $data: The variable that will be passed to $theme_TYPE_alter() implementations
mixed $context1: (optional) An additional variable that is passed by reference.
mixed $context2: (optional) An additional variable that is passed by reference.
::alter
public function alterForTheme(ActiveTheme $theme, $type, &$data, &$context1 = NULL, &$context2 = NULL);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Theme!ThemeManagerInterface.php/function/ThemeManagerInterface::alterForTheme/8.1.x