function DefaultSingleLazyPluginCollection::getConfiguration

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::getConfiguration()
  2. 10 core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::getConfiguration()
  3. 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\Plugin

Code

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.