public function DateRecurHelper::getRules in Recurring Dates Field 3.0.x
Same name and namespace in other branches
- 8.2 src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getRules()
- 3.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getRules()
- 3.1.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getRules()
Get the rules that comprise this helper.
Return value
\Drupal\date_recur\DateRecurRuleInterface[] The rules that comprise this helper.
Overrides DateRecurHelperInterface::getRules
File
- src/
DateRecurHelper.php, line 72
Class
- DateRecurHelper
- Helper for recurring rules.
Namespace
Drupal\date_recurCode
public function getRules() : array {
$rules = $this->dateRecurHelper
->getRules();
assert(is_array($rules));
assert(Inspector::assertAllObjects($rules, DateRecurRuleInterface::class));
return $rules;
}