function EntityChangedTrait::setChangedTime
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityChangedTrait.php \Drupal\Core\Entity\EntityChangedTrait::setChangedTime()
- 8.9.x core/lib/Drupal/Core/Entity/EntityChangedTrait.php \Drupal\Core\Entity\EntityChangedTrait::setChangedTime()
- 11.x core/lib/Drupal/Core/Entity/EntityChangedTrait.php \Drupal\Core\Entity\EntityChangedTrait::setChangedTime()
Sets the timestamp of the last entity change for the current translation.
Parameters
int $timestamp: The timestamp of the last entity save operation.
Return value
$this
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityChangedTrait.php, line 46
Class
- EntityChangedTrait
- Provides a trait for accessing changed time.
Namespace
Drupal\Core\EntityCode
public function setChangedTime($timestamp) {
$this->set('changed', $timestamp);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.