You are here

public function Rule::setIsActive in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/Rule.php \Drupal\rng\Entity\Rule::setIsActive()
  2. 8 src/Entity/Rule.php \Drupal\rng\Entity\Rule::setIsActive()

Set if the rule can be executed.

Parameters

bool $is_active: Whether the rule can be executed.

Return value

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

Overrides RuleInterface::setIsActive

File

src/Entity/Rule.php, line 68

Class

Rule
Defines the event rule entity.

Namespace

Drupal\rng\Entity

Code

public function setIsActive($is_active) {
  $this
    ->set('status', $is_active);
  return $this;
}