protected function DateRecurRulePartConstraintValidator::getFrequencyLabels in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRulePartConstraintValidator::getFrequencyLabels()
- 3.x src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRulePartConstraintValidator::getFrequencyLabels()
- 3.0.x src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRulePartConstraintValidator::getFrequencyLabels()
Labels for frequencies.
Return value
array Labels for frequencies keyed by part.
1 call to DateRecurRulePartConstraintValidator::getFrequencyLabels()
- DateRecurRulePartConstraintValidator::validate in src/
Plugin/ Validation/ Constraint/ DateRecurRulePartConstraintValidator.php
File
- src/
Plugin/ Validation/ Constraint/ DateRecurRulePartConstraintValidator.php, line 104
Class
- DateRecurRulePartConstraintValidator
- Validates the DateRecurRulePartConstraint constraint.
Namespace
Drupal\date_recur\Plugin\Validation\ConstraintCode
protected function getFrequencyLabels() : array {
if (!isset($this->frequencyLabels)) {
$this->frequencyLabels = DateRecurRruleMap::frequencyLabels();
}
return $this->frequencyLabels;
}