You are here

public function RuleInterface::addComponent in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/RuleInterface.php \Drupal\rng\Entity\RuleInterface::addComponent()

Add components to the rule.

Components are not saved until the rule is saved.

Parameters

\Drupal\rng\Entity\RuleComponentInterface $component: The rule component entity.

Return value

\Drupal\rng\Entity\RuleInterface Return this object for chaining.

1 method overrides RuleInterface::addComponent()
Rule::addComponent in src/Entity/Rule.php
Add components to the rule.

File

src/Entity/RuleInterface.php, line 74

Class

RuleInterface
Provides an interface for event rule entities.

Namespace

Drupal\rng\Entity

Code

public function addComponent(RuleComponentInterface $component);