Default value callback for 'status' base field definition.
bool TRUE if the comment should be published, FALSE otherwise.
::baseFieldDefinitions()
public static function getDefaultStatus() { return \Drupal::currentUser()->hasPermission('skip comment approval') ? CommentInterface::PUBLISHED : CommentInterface::NOT_PUBLISHED; }