public static function LibraryItem::getCurrentUserId

Default value callback for 'uid' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

paragraphs/modules/paragraphs_library/src/Entity/LibraryItem.php, line 173

Class

LibraryItem
Defines the LibraryItem entity.

Namespace

Drupal\paragraphs_library\Entity

Code

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