public function Rule::isActive in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/Entity/Rule.php \Drupal\rng\Entity\Rule::isActive()
- 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\EntityCode
public function isActive() {
return $this
->get('status')->value;
}