You are here

public static function DateRecurRruleMap::partLabels in Recurring Dates Field 8.2

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

Labels for parts.

Return value

array Labels for parts keyed by part.

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

File

src/DateRecurRruleMap.php, line 74

Class

DateRecurRruleMap
Rrule maps.

Namespace

Drupal\date_recur

Code

public static function partLabels() : array {
  return [
    'DTSTART' => new TranslatableMarkup('Start date'),
    'UNTIL' => new TranslatableMarkup('Until'),
    'COUNT' => new TranslatableMarkup('Count'),
    'INTERVAL' => new TranslatableMarkup('Interval'),
    'BYSECOND' => new TranslatableMarkup('By-second'),
    'BYMINUTE' => new TranslatableMarkup('By-minute'),
    'BYHOUR' => new TranslatableMarkup('By-hour'),
    'BYDAY' => new TranslatableMarkup('By-day'),
    'BYMONTHDAY' => new TranslatableMarkup('By-day-of-month'),
    'BYYEARDAY' => new TranslatableMarkup('By-day-of-year'),
    'BYWEEKNO' => new TranslatableMarkup('By-week-number'),
    'BYMONTH' => new TranslatableMarkup('By-month'),
    'BYSETPOS' => new TranslatableMarkup('By-set-position'),
    'WKST' => new TranslatableMarkup('Week start'),
  ];
}