public function EntityChangedTrait::getChangedTime

public EntityChangedTrait::getChangedTime()

Gets the timestamp of the last entity change for the current translation.

Return value

int The timestamp of the last entity save operation.

Overrides EntityChangedInterface::getChangedTime

File

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

Class

EntityChangedTrait
Provides a trait for accessing changed time.

Namespace

Drupal\Core\Entity

Code

public function getChangedTime() {
  return $this->get('changed')->value;
}

© 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::getChangedTime/8.1.x