function PluginManagerBase::getInstance
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getInstance()
- 10 core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getInstance()
- 11.x core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getInstance()
6 methods override PluginManagerBase::getInstance()
- ArchiverManager::getInstance in core/
lib/ Drupal/ Core/ Archiver/ ArchiverManager.php - FormatterPluginManager::getInstance in core/
lib/ Drupal/ Core/ Field/ FormatterPluginManager.php - Overrides PluginManagerBase::getInstance().
- MailManager::getInstance in core/
lib/ Drupal/ Core/ Mail/ MailManager.php - Overrides PluginManagerBase::getInstance().
- SelectionPluginManager::getInstance in core/
lib/ Drupal/ Core/ Entity/ EntityReferenceSelection/ SelectionPluginManager.php - TypedDataManager::getInstance in core/
lib/ Drupal/ Core/ TypedData/ TypedDataManager.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ PluginManagerBase.php, line 106
Class
- PluginManagerBase
- Base class for plugin managers.
Namespace
Drupal\Component\PluginCode
public function getInstance(array $options) {
if (!$this->mapper) {
throw new \BadMethodCallException(sprintf('%s does not support this method unless %s::$mapper is set.', static::class, static::class));
}
return $this->mapper
->getInstance($options);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.