function EventMeta::isDefaultRules in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 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
boolean Whether site default rules should be used.
Overrides EventMetaInterface::isDefaultRules
File
- src/
EventMeta.php, line 375
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
function isDefaultRules($trigger) {
return (bool) (!$this
->getRules($trigger));
}