protected function PushIntent::getRequestTime in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/PushIntent.php \Drupal\cms_content_sync\PushIntent::getRequestTime()
- 2.1.x src/PushIntent.php \Drupal\cms_content_sync\PushIntent::getRequestTime()
Return value
int
2 calls to PushIntent::getRequestTime()
- PushIntent::execute in src/
PushIntent.php - Push the given entity.
- PushIntent::getEntityChangedTime in src/
PushIntent.php - Get the changed date of the entity. Not all entities provide the required attribute and even those aren't consistently saving it so this method takes care of these exceptions.
File
- src/
PushIntent.php, line 1051
Class
- PushIntent
- Class PushIntent.
Namespace
Drupal\cms_content_syncCode
protected function getRequestTime() {
return (int) $_SERVER['REQUEST_TIME'];
}