You are here

public function DateRecurRuleInterface::getParts in Recurring Dates Field 8.2

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

Get the RULE parts.

For example, "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;" will return:



[
  'BYDAY' => 'MO,TU,WE,TH,FR',
  'DTSTART' => \DateTime(...),
  'FREQ' => 'WEEKLY',
]

Return value

array The parts of the RRULE.

1 method overrides DateRecurRuleInterface::getParts()
RlDateRecurRule::getParts in src/Rl/RlDateRecurRule.php
Get the RULE parts.

File

src/DateRecurRuleInterface.php, line 40

Class

DateRecurRuleInterface
Defines an interface for a single rule.

Namespace

Drupal\date_recur

Code

public function getParts() : array;