public function EventMeta::isDefaultRules in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/EventMeta.php \Drupal\rng\EventMeta::isDefaultRules()
- 3.x src/EventMeta.php \Drupal\rng\EventMeta::isDefaultRules()
Determines if this event should use site default rules.
If the event has no rules defined, this will determine if site default rules should be used.
Parameters
string $trigger: The trigger ID for the rules.
Return value
bool Whether site default rules should be used.
Overrides EventMetaInterface::isDefaultRules
File
- src/
EventMeta.php, line 416
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function isDefaultRules($trigger) {
return (bool) (!$this
->getRules($trigger));
}