ContentModerationState::getCurrentUserId

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());
}
doc_Drupal
2016-10-29 08:58:01
Comments
Leave a Comment

Please login to continue.