You are here

public static function DateRecurRruleMap::frequencyLabels in Recurring Dates Field 3.1.x

Same name and namespace in other branches
  1. 8.2 src/DateRecurRruleMap.php \Drupal\date_recur\DateRecurRruleMap::frequencyLabels()
  2. 3.x src/DateRecurRruleMap.php \Drupal\date_recur\DateRecurRruleMap::frequencyLabels()
  3. 3.0.x src/DateRecurRruleMap.php \Drupal\date_recur\DateRecurRruleMap::frequencyLabels()

Labels for frequencies.

Return value

array Labels for frequencies keyed by frequency.

2 calls to DateRecurRruleMap::frequencyLabels()
DateRecurItem::fieldSettingsForm in src/Plugin/Field/FieldType/DateRecurItem.php
Returns a form for the field-level settings.
DateRecurRulePartConstraintValidator::getFrequencyLabels in src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php
Labels for frequencies.

File

src/DateRecurRruleMap.php, line 99

Class

DateRecurRruleMap
Rrule maps.

Namespace

Drupal\date_recur

Code

public static function frequencyLabels() : array {
  return [
    'SECONDLY' => new TranslatableMarkup('Secondly'),
    'MINUTELY' => new TranslatableMarkup('Minutely'),
    'HOURLY' => new TranslatableMarkup('Hourly'),
    'DAILY' => new TranslatableMarkup('Daily'),
    'WEEKLY' => new TranslatableMarkup('Weekly'),
    'MONTHLY' => new TranslatableMarkup('Monthly'),
    'YEARLY' => new TranslatableMarkup('Yearly'),
  ];
}