public function ActiveHoursInterface::findNextTime in SMS Framework 8
Same name and namespace in other branches
- 2.x modules/sms_user/src/ActiveHoursInterface.php \Drupal\sms_user\ActiveHoursInterface::findNextTime()
- 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 38
Class
- ActiveHoursInterface
- Defines interface for the user active hours service.
Namespace
Drupal\sms_userCode
public function findNextTime(UserInterface $user, $now = 'now');