You are here

protected function DateRecurRulePartConstraintValidator::getFrequencyLabels in Recurring Dates Field 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRulePartConstraintValidator::getFrequencyLabels()
  2. 3.0.x src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRulePartConstraintValidator::getFrequencyLabels()
  3. 3.1.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
Checks if the passed value is valid.

File

src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php, line 104

Class

DateRecurRulePartConstraintValidator
Validates the DateRecurRulePartConstraint constraint.

Namespace

Drupal\date_recur\Plugin\Validation\Constraint

Code

protected function getFrequencyLabels() : array {
  if (!isset($this->frequencyLabels)) {
    $this->frequencyLabels = DateRecurRruleMap::frequencyLabels();
  }
  return $this->frequencyLabels;
}