You are here

public function RuleComponentInterface::setRule in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/RuleComponentInterface.php \Drupal\rng\Entity\RuleComponentInterface::setRule()

Sets the rule for the component.

Return value

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

1 method overrides RuleComponentInterface::setRule()
RuleComponent::setRule in src/Entity/RuleComponent.php
Sets the rule for the component.

File

src/Entity/RuleComponentInterface.php, line 26

Class

RuleComponentInterface
Provides an interface for rule component entities.

Namespace

Drupal\rng\Entity

Code

public function setRule(RuleInterface $rule);