You are here

protected function DateRecurRulePartConstraintValidator::getPartLabels 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::getPartLabels()
  2. 3.0.x src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRulePartConstraintValidator::getPartLabels()
  3. 3.1.x src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurRulePartConstraintValidator::getPartLabels()

Labels for parts.

Return value

array Labels for parts keyed by part.

1 call to DateRecurRulePartConstraintValidator::getPartLabels()
DateRecurRulePartConstraintValidator::validate in src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php
Checks if the passed value is valid.

File

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

Class

DateRecurRulePartConstraintValidator
Validates the DateRecurRulePartConstraint constraint.

Namespace

Drupal\date_recur\Plugin\Validation\Constraint

Code

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