You are here

public function RuleComponent::setConfiguration in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/Entity/RuleComponent.php \Drupal\rng\Entity\RuleComponent::setConfiguration()
  2. 3.x src/Entity/RuleComponent.php \Drupal\rng\Entity\RuleComponent::setConfiguration()

Sets the plugin configuration.

Parameters

array $configuration: Mixed configuration.

Return value

\Drupal\rng\Entity\RuleComponentInterface Return this object for chaining.

Overrides RuleComponentInterface::setConfiguration

File

src/Entity/RuleComponent.php, line 91

Class

RuleComponent
Defines a event rule plugin instance entity: a condition or action.

Namespace

Drupal\rng\Entity

Code

public function setConfiguration(array $configuration) {
  $this
    ->set('configuration', $configuration);
  return $this;
}