You are here

public function RlDateRecurRule::getParts in Recurring Dates Field 3.x

Same name and namespace in other branches
  1. 8.2 src/Rl/RlDateRecurRule.php \Drupal\date_recur\Rl\RlDateRecurRule::getParts()
  2. 3.0.x src/Rl/RlDateRecurRule.php \Drupal\date_recur\Rl\RlDateRecurRule::getParts()
  3. 3.1.x src/Rl/RlDateRecurRule.php \Drupal\date_recur\Rl\RlDateRecurRule::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.

Overrides DateRecurRuleInterface::getParts

File

src/Rl/RlDateRecurRule.php, line 46

Class

RlDateRecurRule
RRule object.

Namespace

Drupal\date_recur\Rl

Code

public function getParts() : array {
  return $this->parts;
}