You are here

public function Rule::isActive in RNG - Events and Registrations 8.2

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

Determine if the can be executed.

Return value

bool Whether the rule can be executed.

Overrides RuleInterface::isActive

File

src/Entity/Rule.php, line 61

Class

Rule
Defines the event rule entity.

Namespace

Drupal\rng\Entity

Code

public function isActive() {
  return $this
    ->get('status')->value;
}