public static function Redirect::getCurrentUserId in Redirect 8
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- src/
Entity/ Redirect.php, line 343
Class
- Redirect
- The redirect entity class.
Namespace
Drupal\redirect\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}