You are here

public function ConditionPluginBase::getConfiguration in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::getConfiguration()

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides ConfigurableInterface::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;
}