You are here

public function ConfigurableActionBase::setConfiguration in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Action/ConfigurableActionBase.php \Drupal\Core\Action\ConfigurableActionBase::setConfiguration()

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

1 call to ConfigurableActionBase::setConfiguration()
ConfigurableActionBase::__construct in core/lib/Drupal/Core/Action/ConfigurableActionBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

core/lib/Drupal/Core/Action/ConfigurableActionBase.php, line 42

Class

ConfigurableActionBase
Provides a base implementation for a configurable Action plugin.

Namespace

Drupal\Core\Action

Code

public function setConfiguration(array $configuration) {
  $this->configuration = $configuration + $this
    ->defaultConfiguration();
}