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;
}
doc_Drupal
2016-10-29 09:04:40
Comments
Leave a Comment

Please login to continue.