You are here

protected function ForcePasswordChangeService::getRequestTime in Force Password Change 8

Same name and namespace in other branches
  1. 2.0.x src/Service/ForcePasswordChangeService.php \Drupal\force_password_change\Service\ForcePasswordChangeService::getRequestTime()

* Retrieve the timestamp for the current request. Spun out into a protected function * to allow for overriding in Unit Tests. * *

Return value

int * A UNIX timestamp representing the time of the current request

3 calls to ForcePasswordChangeService::getRequestTime()
ForcePasswordChangeService::checkForForce in src/Service/ForcePasswordChangeService.php
*
ForcePasswordChangeService::registerForcePasswordTime in src/Service/ForcePasswordChangeService.php
*
ForcePasswordChangeService::setChangedTimeForUser in src/Service/ForcePasswordChangeService.php
*
1 method overrides ForcePasswordChangeService::getRequestTime()
TestForcePasswordChangeService::getRequestTime in tests/src/Unit/Service/TestForcePasswordChangeService.php
* Retrieve the timestamp for the current request. Spun out into a protected function * to allow for overriding in Unit Tests. * *

File

src/Service/ForcePasswordChangeService.php, line 336

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

protected function getRequestTime() {
  return REQUEST_TIME;
}