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

Breadcrumb

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

function EntityChangedTrait::getChangedTime

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

Return value

int|null The timestamp of the last entity save operation. Some entities allow a NULL value indicating the changed time is unknown.

File

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

Class

EntityChangedTrait
Provides a trait for accessing changed time.

Namespace

Drupal\Core\Entity

Code

public function getChangedTime() {
    $value = $this->get('changed')->value;
    return isset($value) ? (int) $value : NULL;
}

API Navigation

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