public function LingotekContentTranslationServiceInterface::setLastUploaded in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.4.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUploaded()
- 3.5.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUploaded()
- 3.6.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUploaded()
- 3.7.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setLastUploaded()
- 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 418
Class
- LingotekContentTranslationServiceInterface
- Service for managing Lingotek content translations.
Namespace
Drupal\lingotekCode
public function setLastUploaded(ContentEntityInterface $entity, int $timestamp);