You are here

public function RulesActionBase::execute in Rules 8.3

Executes the plugin.

Overrides ExecutableInterface::execute

2 methods override RulesActionBase::execute()
EntityCreate::execute in src/Plugin/RulesAction/EntityCreate.php
Executes the plugin.
RulesComponentAction::execute in src/Plugin/RulesAction/RulesComponentAction.php
Executes the plugin.

File

src/Core/RulesActionBase.php, line 132

Class

RulesActionBase
Base class for rules actions.

Namespace

Drupal\rules\Core

Code

public function execute() {

  // Provide a reasonable default implementation that calls doExecute() while
  // passing the defined context as arguments.
  $args = [];
  foreach ($this
    ->getContextDefinitions() as $name => $definition) {
    $args[$name] = $this
      ->getContextValue($name);
  }
  call_user_func_array([
    $this,
    'doExecute',
  ], $args);
}