You are here

protected function DefaultPluginManager::alterInfo in Plug 7

Initializes the alter hook.

Parameters

string $alter_hook: Name of the alter hook; for example, to invoke hook_mymodule_data_alter() pass in "mymodule_data".

2 calls to DefaultPluginManager::alterInfo()
FruitPluginManager::__construct in modules/plug_example/src/FruitPluginManager.php
Constructs FruitPluginManager.
NamePluginManager::__construct in modules/plug_example/src/NamePluginManager.php
Constructs NamePluginManager.

File

lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 156
Contains \Drupal\Core\Plugin\DefaultPluginManager.

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

protected function alterInfo($alter_hook) {
  $this->alterHook = $alter_hook;
}