public function DateRecurInterpreterPluginInterface::interpret in Recurring Dates Field 8.2
Same name and namespace in other branches
- 3.x src/Plugin/DateRecurInterpreterPluginInterface.php \Drupal\date_recur\Plugin\DateRecurInterpreterPluginInterface::interpret()
- 3.0.x src/Plugin/DateRecurInterpreterPluginInterface.php \Drupal\date_recur\Plugin\DateRecurInterpreterPluginInterface::interpret()
- 3.1.x src/Plugin/DateRecurInterpreterPluginInterface.php \Drupal\date_recur\Plugin\DateRecurInterpreterPluginInterface::interpret()
Interpret a set of rules in a language.
Parameters
\Drupal\date_recur\DateRecurRuleInterface[] $rules: The rules.
string $language: The two-letter language code.
\DateTimeZone|null $timeZone: Time zone to display dates in. Time zone from rules is not used because time zone used to calculate recurring dates may be different. Use null for default PHP time zone.
Return value
string Rules interpreted into a string.
2 methods override DateRecurInterpreterPluginInterface::interpret()
- RlInterpreter::interpret in src/
Plugin/ DateRecurInterpreter/ RlInterpreter.php - Interpret a set of rules in a language.
- TestInterpreter::interpret in tests/
modules/ date_recur_interpreter_test/ src/ Plugin/ DateRecurInterpreter/ TestInterpreter.php - Interpret a set of rules in a language.
File
- src/
Plugin/ DateRecurInterpreterPluginInterface.php, line 30
Class
- DateRecurInterpreterPluginInterface
- Interface for date recur interpreter plugins.
Namespace
Drupal\date_recur\PluginCode
public function interpret(array $rules, string $language, ?\DateTimeZone $timeZone = NULL) : string;