You are here

public function ActiveHoursInterface::findNextTime in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 modules/sms_user/src/ActiveHoursInterface.php \Drupal\sms_user\ActiveHoursInterface::findNextTime()
  2. 2.1.x modules/sms_user/src/ActiveHoursInterface.php \Drupal\sms_user\ActiveHoursInterface::findNextTime()

Determine the next valid active hours date range for a user.

Parameters

\Drupal\user\UserInterface $user: A user entity.

string $now: A time or strtotime() relative string localised to the users timezone. Defaults to current time for the user.

Return value

\Drupal\sms_user\ActiveHoursDates|false A date pair, or FALSE if no next date could be determined.

1 method overrides ActiveHoursInterface::findNextTime()
ActiveHours::findNextTime in modules/sms_user/src/ActiveHours.php
Determine the next valid active hours date range for a user.

File

modules/sms_user/src/ActiveHoursInterface.php, line 40

Class

ActiveHoursInterface
Defines interface for the user active hours service.

Namespace

Drupal\sms_user

Code

public function findNextTime(UserInterface $user, $now = 'now');