8.5.x ConditionPluginBase.php ConditionPluginBase::getConfiguration()
8.0.x ConditionPluginBase.php ConditionPluginBase::getConfiguration()
8.1.x ConditionPluginBase.php ConditionPluginBase::getConfiguration()
8.2.x ConditionPluginBase.php ConditionPluginBase::getConfiguration()
8.3.x ConditionPluginBase.php ConditionPluginBase::getConfiguration()
8.4.x ConditionPluginBase.php ConditionPluginBase::getConfiguration()
8.6.x ConditionPluginBase.php ConditionPluginBase::getConfiguration()

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides ConfigurablePluginInterface::getConfiguration

File

core/lib/Drupal/Core/Condition/ConditionPluginBase.php, line 90

Class

ConditionPluginBase
Provides a basis for fulfilling contexts for condition plugins.

Namespace

Drupal\Core\Condition

Code

public function getConfiguration() {
  return [
    'id' => $this
      ->getPluginId(),
  ] + $this->configuration;
}