ContentTranslationHandler::getDefaultOwnerId

public static 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 713

Class

ContentTranslationHandler
Base class for content translation handlers.

Namespace

Drupal\content_translation

Code

public static function getDefaultOwnerId() {
  return \Drupal::currentUser()->id();
}
doc_Drupal
2016-10-29 08:58:15
Comments
Leave a Comment

Please login to continue.