protected function DefaultPluginManager::alterInfo in Service Container 7
Same name and namespace in other branches
- 7.2 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\PluginCode
protected function alterInfo($alter_hook) {
$this->alterHook = $alter_hook;
}