public function DateRecurRuleInterface::getParts in Recurring Dates Field 3.0.x
Same name and namespace in other branches
- 8.2 src/DateRecurRuleInterface.php \Drupal\date_recur\DateRecurRuleInterface::getParts()
- 3.x src/DateRecurRuleInterface.php \Drupal\date_recur\DateRecurRuleInterface::getParts()
- 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_recurCode
public function getParts() : array;