public function EntityChangedTrait::setChangedTime

public EntityChangedTrait::setChangedTime($timestamp)

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

Overrides EntityChangedInterface::setChangedTime

File

core/lib/Drupal/Core/Entity/EntityChangedTrait.php, line 44

Class

EntityChangedTrait
Provides a trait for accessing changed time.

Namespace

Drupal\Core\Entity

Code

public function setChangedTime($timestamp) {
  $this->set('changed', $timestamp);
  return $this;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityChangedTrait.php/function/EntityChangedTrait::setChangedTime/8.1.x