function DefaultPluginManager::alterInfo

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::alterInfo()
  2. 8.9.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::alterInfo()
  3. 11.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::alterInfo()

Sets the alter hook name.

Parameters

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

45 calls to DefaultPluginManager::alterInfo()
ActionManager::__construct in core/lib/Drupal/Core/Action/ActionManager.php
Constructs a new class instance.
ArchiverManager::__construct in core/lib/Drupal/Core/Archiver/ArchiverManager.php
Constructs an ArchiverManager object.
BlockManager::__construct in core/lib/Drupal/Core/Block/BlockManager.php
Constructs a new \Drupal\Core\Block\BlockManager object.
BreakpointManager::__construct in core/modules/breakpoint/src/BreakpointManager.php
Constructs a new BreakpointManager instance.
CKEditor4To5UpgradePluginManager::__construct in core/modules/ckeditor5/src/Plugin/CKEditor4To5UpgradePluginManager.php
Constructs a CKEditor4To5UpgradePluginManager object.

... See full list

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 203

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.