PluginBase::$configuration

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::configuration
  2. 8.9.x core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::configuration
  3. 11.x core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::configuration

Configuration information passed into the plugin.

When using an interface like \Drupal\Component\Plugin\ConfigurableInterface, this is where the configuration should be stored.

Plugin configuration is optional, so plugin implementations must provide their own setters and getters.

Type: array

File

core/lib/Drupal/Component/Plugin/PluginBase.php, line 41

Class

PluginBase
Base class for plugins wishing to support metadata inspection.

Namespace

Drupal\Component\Plugin

Code

protected $configuration;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.