Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContentTranslationMetadataWrapper.php

function ContentTranslationMetadataWrapper::getChangedTime

Overrides ContentTranslationMetadataWrapperInterface::getChangedTime

File

core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 123

Class

ContentTranslationMetadataWrapper
Base class for content translation metadata wrappers.

Namespace

Drupal\content_translation

Code

public function getChangedTime() {
    return $this->translation
        ->hasField('content_translation_changed') ? $this->translation
        ->get('content_translation_changed')->value : $this->translation
        ->getChangedTime();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal