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

Breadcrumb

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

function 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 787

Class

ContentTranslationHandler
Base class for content translation handlers.

Namespace

Drupal\content_translation

Code

public static function getDefaultOwnerId() {
    return \Drupal::currentUser()->id();
}

API Navigation

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