public function EventMetaInterface::getRules in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/EventMetaInterface.php \Drupal\rng\EventMetaInterface::getRules()
- 8 src/EventMetaInterface.php \Drupal\rng\EventMetaInterface::getRules()
Get all rules for this event.
Parameters
string|null $trigger: The trigger ID for the rule.
bool $defaults: If there are no rules in the database, generate some unsaved rules.
bool $is_active: The status of the rules, or set to NULL for any status.
Return value
\Drupal\rng\Entity\RuleInterface[] An array of rng_rule entities keyed by rule ID.
1 method overrides EventMetaInterface::getRules()
- EventMeta::getRules in src/
EventMeta.php - Get all rules for this event.
File
- src/
EventMetaInterface.php, line 226
Class
- EventMetaInterface
- Interface for EventMeta.
Namespace
Drupal\rngCode
public function getRules($trigger = NULL, $defaults = FALSE, $is_active = TRUE);