public function EventTypeRule::setAction in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/Entity/EventTypeRule.php \Drupal\rng\Entity\EventTypeRule::setAction()
- 3.x 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\EntityCode
public function setAction($name, $configuration) {
$this->actions[$name] = $configuration;
return $this;
}