public static function DateRecurHelper::createInstance in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::createInstance()
- 3.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::createInstance()
- 3.0.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::createInstance()
Create a new instance.
Parameters
string $string: The repeat rule.
\DateTimeInterface $dtStart: The initial occurrence start date.
\DateTimeInterface|null $dtStartEnd: The initial occurrence end date, or NULL to use start date.
Return value
\Drupal\date_recur\DateRecurHelperInterface An instance of helper.
Overrides DateRecurHelperInterface::createInstance
File
- src/
DateRecurHelper.php, line 65
Class
- DateRecurHelper
- Helper for recurring rules.
Namespace
Drupal\date_recurCode
public static function createInstance(string $string, \DateTimeInterface $dtStart, ?\DateTimeInterface $dtStartEnd = NULL) : DateRecurHelperInterface {
throw new \LogicException('Create instance must not be called on this helper.');
}