You are here

public function LingotekContentTranslationServiceInterface::setLastUploaded in Lingotek Translation 3.6.x

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

Updates the 'initial upload' 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::setLastUploaded()
LingotekContentTranslationService::setLastUploaded in src/LingotekContentTranslationService.php
Updates the 'initial upload' time metadata to the current request time.

File

src/LingotekContentTranslationServiceInterface.php, line 398

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

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