You are here

public function LingotekContentTranslationServiceInterface::setLastUpdated in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.4.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUpdated()
  2. 3.5.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUpdated()
  3. 3.6.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUpdated()
  4. 3.7.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUpdated()
  5. 3.8.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUpdated()

Updates the 'updated date' time metadata to the current request time.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity which we want the document id.

int $timestamp: The timestamp we want to store.

Return value

\Drupal\Core\Entity\ContentEntityInterface Returns the entity.

1 method overrides LingotekContentTranslationServiceInterface::setLastUpdated()
LingotekContentTranslationService::setLastUpdated in src/LingotekContentTranslationService.php
Updates the 'updated date' time metadata to the current request time.

File

src/LingotekContentTranslationServiceInterface.php, line 431

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function setLastUpdated(ContentEntityInterface $entity, int $timestamp);