You are here

public function EntityChangedTrait::setChangedTime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 49
Contains \Drupal\Core\Entity\EntityChangedTrait.

Class

EntityChangedTrait
Provides a trait for accessing changed time.

Namespace

Drupal\Core\Entity

Code

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