You are here

public static function RngContact::getCurrentUserId in RNG Contact 8

Default value callback for 'owner' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

src/Entity/RngContact.php, line 125

Class

RngContact
Defines the contact entity.

Namespace

Drupal\rng_contact\Entity

Code

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