You are here

public function LingotekInterfaceTranslationService::getUpdatedTime in Lingotek Translation 4.0.x

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

Returns the 'updated date' time metadata.

Parameters

string $component: The component for which we want to get the timestamp.

Return value

int Returns the unix timestamp.

Overrides LingotekInterfaceTranslationServiceInterface::getUpdatedTime

File

src/LingotekInterfaceTranslationService.php, line 1180

Class

LingotekInterfaceTranslationService
Service for managing Lingotek interface translations.

Namespace

Drupal\lingotek

Code

public function getUpdatedTime($component) {
  $metadata = $this
    ->getMetadata($component);
  return isset($metadata['updated_timestamp']) ? $metadata['updated_timestamp'] : NULL;
}