function ContentTranslationHandler::getDefaultOwnerId
Same name in other branches
- 8.9.x core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::getDefaultOwnerId()
- 10 core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::getDefaultOwnerId()
- 11.x core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::getDefaultOwnerId()
Default value callback for the owner base field definition.
Return value
int The user ID.
File
-
core/
modules/ content_translation/ src/ ContentTranslationHandler.php, line 813
Class
- ContentTranslationHandler
- Base class for content translation handlers.
Namespace
Drupal\content_translationCode
public static function getDefaultOwnerId() {
return \Drupal::currentUser()->id();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.