public function Js::alter in JS Callback Handler 8.3
Passes alterable variables to specific EXTENSION_TYPE_alter().
Parameters
string|array $type: A string describing the type of the alterable $data.
mixed $data: The data that will be passed to EXTENSION_TYPE_alter() implementations to be altered.
mixed $context1: (optional) An additional variable that is passed by reference.
mixed $context2: (optional) An additional variable that is passed by reference.
See also
\Drupal\Core\Extension\ModuleHandlerInterface::alter()
\Drupal\Core\Theme\ThemeManagerInterface::alter()
1 call to Js::alter()
- Js::deliver in src/
Js.php - Sends content to the browser via the delivery callback.
File
- src/
Js.php, line 139
Class
- Js
- JS Callback Handler service.
Namespace
Drupal\jsCode
public function alter($type, &$data, &$context1 = NULL, &$context2 = NULL) {
$this->moduleHandler
->alter($type, $data, $context1, $context2);
$this->themeManager
->alter($type, $data, $context1, $context2);
}