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