You are here

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

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

Gets the 'initial upload' 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::getLastUploaded

File

src/LingotekConfigTranslationService.php, line 1793

Class

LingotekConfigTranslationService
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

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