protected function AliasManager::getRequestTime in Drupal 10
Same name and namespace in other branches
- 9 core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::getRequestTime()
Wrapper method for REQUEST_TIME constant.
Return value
int
File
- core/
modules/ path_alias/ src/ AliasManager.php, line 298
Class
- AliasManager
- The default alias manager implementation.
Namespace
Drupal\path_aliasCode
protected function getRequestTime() {
return defined('REQUEST_TIME') ? REQUEST_TIME : (int) $_SERVER['REQUEST_TIME'];
}