public static function LibraryItem::getCurrentUserId in Paragraphs 8
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- modules/
paragraphs_library/ src/ Entity/ LibraryItem.php, line 173
Class
- LibraryItem
- Defines the LibraryItem entity.
Namespace
Drupal\paragraphs_library\EntityCode
public static function getCurrentUserId() {
return array(
\Drupal::currentUser()
->id(),
);
}