You are here

public function LingotekConfigTranslationService::getLastUpdated in Lingotek Translation 3.4.x

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

Gets the 'updated date' time metadata.

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The entity for which we want the timestamp.

Return value

int Returns the timestamp or NULL.

Overrides LingotekConfigTranslationServiceInterface::getLastUpdated

File

src/LingotekConfigTranslationService.php, line 1801

Class

LingotekConfigTranslationService
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

public function getLastUpdated(ConfigEntityInterface $entity) {
  $metadata = LingotekConfigMetadata::loadByConfigName($entity
    ->getEntityTypeId() . '.' . $entity
    ->id());
  return $metadata
    ->getLastUpdated();
}