You are here

protected function DefaultPluginManager::alterInfo in Drupal 9

Same name and namespace in other branches
  1. 8 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.
AggregatorPluginManager::__construct in core/modules/aggregator/src/Plugin/AggregatorPluginManager.php
Constructs an AggregatorPluginManager object.
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.

... 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;
}