Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityChangedTrait.php

function 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 46

Class

EntityChangedTrait
Provides a trait for accessing changed time.

Namespace

Drupal\Core\Entity

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal