You are here

public static function Feed::getCurrentUserId in Feeds 8.3

Default value callback for 'uid' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

src/Entity/Feed.php, line 737

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

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