public static function Node::getCurrentUserId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::getCurrentUserId()
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- core/
modules/ node/ src/ Entity/ Node.php, line 502 - Contains \Drupal\node\Entity\Node.
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\EntityCode
public static function getCurrentUserId() {
return array(
\Drupal::currentUser()
->id(),
);
}