You are here

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

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

Execute the component.

Parameters

array $context: Context of execution.

Overrides RuleComponentInterface::execute

File

src/Entity/RuleComponent.php, line 114

Class

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

Namespace

Drupal\rng\Entity

Code

public function execute(array $context) {

  // @todo context is not standard
  $this
    ->createInstance()
    ->execute($context);
}