You are here

public function EventTypeRule::setAction in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/EventTypeRule.php \Drupal\rng\Entity\EventTypeRule::setAction()
  2. 8 src/Entity/EventTypeRule.php \Drupal\rng\Entity\EventTypeRule::setAction()

Set an action configuration.

Parameters

$name: A action plugin instance ID.

$configuration: The action plugin configuration

Return value

$this The event type rule.

Overrides EventTypeRuleInterface::setAction

File

src/Entity/EventTypeRule.php, line 135

Class

EventTypeRule
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function setAction($name, $configuration) {
  $this->actions[$name] = $configuration;
  return $this;
}