You are here

public static function DateRecurHelperInterface::createInstance in Recurring Dates Field 3.1.x

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

3 methods override DateRecurHelperInterface::createInstance()
DateRecurHelper::createInstance in src/DateRecurHelper.php
Create a new instance.
DateRecurNonRecurringHelper::createInstance in src/DateRecurNonRecurringHelper.php
Create a new instance.
RlHelper::createInstance in src/Rl/RlHelper.php
Create a new instance.

File

src/DateRecurHelperInterface.php, line 27

Class

DateRecurHelperInterface
Interface for recurring rule helper.

Namespace

Drupal\date_recur

Code

public static function createInstance(string $string, \DateTimeInterface $dtStart, ?\DateTimeInterface $dtStartEnd = NULL) : DateRecurHelperInterface;