function DefaultSingleLazyPluginCollection::getConfiguration
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::getConfiguration()
- 10 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::getConfiguration()
- 11.x core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::getConfiguration()
Overrides LazyPluginCollection::getConfiguration
File
-
core/
lib/ Drupal/ Core/ Plugin/ DefaultSingleLazyPluginCollection.php, line 68
Class
- DefaultSingleLazyPluginCollection
- Provides a default plugin collection for a plugin type.
Namespace
Drupal\Core\PluginCode
public function getConfiguration() {
$plugin = $this->get($this->instanceId);
if (PluginHelper::isConfigurable($plugin)) {
return $plugin->getConfiguration();
}
else {
return $this->configuration;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.