You are here

public static function EventSeries::getCurrentUserId in Booking and Availability Management Tools for Drupal 8

Default value callback for 'uid' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

modules/bat_event_series/src/Entity/EventSeries.php, line 290
Contains \Drupal\bat_event_series\Entity\EventSeries.

Class

EventSeries
Defines the Event Series entity.

Namespace

Drupal\bat_event_series\Entity

Code

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