You are here

public function RuleComponent::getConfiguration in RNG - Events and Registrations 8

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

Gets the configuration for the component.

Return value

array Configuration for the component.

Overrides RuleComponentInterface::getConfiguration

1 call to RuleComponent::getConfiguration()
RuleComponent::createInstance in src/Entity/RuleComponent.php
Gets the configuration for the component.

File

src/Entity/RuleComponent.php, line 86

Class

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

Namespace

Drupal\rng\Entity

Code

public function getConfiguration() {
  return $this
    ->get('configuration')
    ->first() ? $this
    ->get('configuration')
    ->first()
    ->getValue() : [];
}