function ContentTranslationMetadataWrapper::getAuthor
Same name in other branches
- 8.9.x core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::getAuthor()
- 10 core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::getAuthor()
- 11.x core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::getAuthor()
Overrides ContentTranslationMetadataWrapperInterface::getAuthor
File
-
core/
modules/ content_translation/ src/ ContentTranslationMetadataWrapper.php, line 73
Class
- ContentTranslationMetadataWrapper
- Base class for content translation metadata wrappers.
Namespace
Drupal\content_translationCode
public function getAuthor() {
return $this->translation
->hasField('content_translation_uid') ? $this->translation
->get('content_translation_uid')->entity : $this->translation
->getOwner();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.