I have generated an array in Drupal 8 which is created by using viewbuilder in this manner:
$content = $this->entityManager()->getViewBuilder($entity->getEntityTypeId())>view($entity, 'hardcopy'); And now I want to hide comment section present in this array.
Any idea on how to do this?