public static ContentModerationState::getCurrentUserId()
Default value callback for the 'uid' base field definition.
Return value
array An array of default values.
See also
\Drupal\content_moderation\Entity\ContentModerationState::baseFieldDefinitions()
File
- core/modules/content_moderation/src/Entity/ContentModerationState.php, line 144
Class
- ContentModerationState
- Defines the Content moderation state entity.
Namespace
Drupal\content_moderation\Entity
Code
public static function getCurrentUserId() { return array(\Drupal::currentUser()->id()); }
Please login to continue.