You are here

public function PeriodEntityInterface::contains in Recurring Time Period 8

Checks whether the given date/time is contained in the period.

Parameters

\Drupal\Core\Datetime\DrupalDateTime $date: The date/time.

Return value

bool TRUE if the date/time is contained in the period, FALSE otherwise.

File

src/Entity/PeriodEntityInterface.php, line 46

Class

PeriodEntityInterface
Interface for entities that represent a time period.

Namespace

Drupal\recurring_period\Entity

Code

public function contains(DrupalDateTime $date);