function AliasManager::getRequestTime
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Path/AliasManager.php \Drupal\Core\Path\AliasManager::getRequestTime()
- 10 core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::getRequestTime()
Wrapper method for REQUEST_TIME constant.
Return value
int
1 call to AliasManager::getRequestTime()
- AliasManager::writeCache in core/
modules/ path_alias/ src/ AliasManager.php - Cache an array of the paths available on each page. We assume that aliases will be needed for the majority of these paths during subsequent requests, and load them in a single query during path alias lookup.
File
-
core/
modules/ path_alias/ src/ AliasManager.php, line 295
Class
- AliasManager
- The default alias manager implementation.
Namespace
Drupal\path_aliasCode
protected function getRequestTime() {
return defined('REQUEST_TIME') ? REQUEST_TIME : (int) $_SERVER['REQUEST_TIME'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.