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

Please login to continue.