You are here

protected function DefaultPluginManager::alterInfo in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::alterInfo()
  2. 9 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_mymodule_data_alter() pass in "mymodule_data".

44 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 165

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

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