You are here

protected function DefaultPluginManager::alterInfo in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::alterInfo()

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".

File

lib/Drupal/Component/Plugin/DefaultPluginManager.php, line 170
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;
}