You are here

protected function DefaultPluginManager::alterInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/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".

35 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 a 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.
CKEditorPluginManager::__construct in core/modules/ckeditor/src/CKEditorPluginManager.php
Constructs a CKEditorPluginManager object.

... See full list

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 158
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;
}