function DefaultPluginManager::alterInfo
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::alterInfo()
- 10 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::alterInfo()
- 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_mymodule_data_alter() pass in "mymodule_data".
46 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.
File
-
core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php, line 171
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
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.