AliasManager::getRequestTime

protected AliasManager::getRequestTime()

Wrapper method for REQUEST_TIME constant.

Return value

int

File

core/lib/Drupal/Core/Path/AliasManager.php, line 296

Class

AliasManager
The default alias manager implementation.

Namespace

Drupal\Core\Path

Code

protected function getRequestTime() {
  return defined('REQUEST_TIME') ? REQUEST_TIME : (int) $_SERVER['REQUEST_TIME'];
}
doc_Drupal
2016-10-29 08:44:10
Comments
Leave a Comment

Please login to continue.