public function RuleInterface::addComponent in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 3.x 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\EntityCode
public function addComponent(RuleComponentInterface $component);