You are here

public function EckEntity::getChangedTime in Entity Construction Kit (ECK) 8

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

Return value

int|null The timestamp of the last entity save or NULL if the "changed" field does not exist.

Overrides EckEntityInterface::getChangedTime

File

src/Entity/EckEntity.php, line 111

Class

EckEntity
Defines the ECK entity.

Namespace

Drupal\eck\Entity

Code

public function getChangedTime() {
  if ($this
    ->hasField('changed')) {
    return $this
      ->get('changed')->value;
  }
  return NULL;
}