public function RuleInterface::addComponent in RNG - Events and Registrations 8
Add components to the rule.
Components are not saved until the rule is saved.
Parameters
\Drupal\rng\RuleComponentInterface $component: The rule component entity.
Return value
\Drupal\rng\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/
RuleInterface.php, line 74
Class
- RuleInterface
- Provides an interface for event rule entities.
Namespace
Drupal\rngCode
public function addComponent(RuleComponentInterface $component);