function DefaultPluginManager::alterInfo
Same name and namespace in other branches
- 11.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()
- 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".
5 calls to DefaultPluginManager::alterInfo()
- AggregatorPluginManager::__construct in core/
modules/ aggregator/ src/ Plugin/ AggregatorPluginManager.php - Constructs a AggregatorPluginManager object.
- ConstraintManager::__construct in core/
lib/ Drupal/ Core/ Validation/ ConstraintManager.php - Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct().
- ImageToolkitOperationManager::__construct in core/
lib/ Drupal/ Core/ ImageToolkit/ ImageToolkitOperationManager.php - Constructs the ImageToolkitOperationManager object.
- QueueWorkerManager::__construct in core/
lib/ Drupal/ Core/ Queue/ QueueWorkerManager.php - Constructs an QueueWorkerManager object.
- TypedConfigManager::__construct in core/
lib/ Drupal/ Core/ Config/ TypedConfigManager.php - Creates a new typed configuration manager.
File
-
core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php, line 165
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.