You are here

public static function SupportTicket::getCurrentUserId in Support Ticketing System 8

Default value callback for 'uid' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

modules/support_ticket/src/Entity/SupportTicket.php, line 439
Contains \Drupal\support_ticket\Entity\SupportTicket.

Class

SupportTicket
Defines the support ticket entity class.

Namespace

Drupal\support_ticket\Entity

Code

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