public function Rule::isActive in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 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 63
Class
- Rule
- Defines the event rule entity.
Namespace
Drupal\rng\EntityCode
public function isActive() {
return $this
->get('status')->value;
}