You are here

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

Same name and namespace in other branches
  1. 8.2 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 63

Class

Rule
Defines the event rule entity.

Namespace

Drupal\rng\Entity

Code

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