Answers for "drupal 8 entity_view"

PHP
0

drupal 8 entity_view

$view_builder = \Drupal::entityTypeManager()
      ->getViewBuilder($entity->getEntityTypeId());
    $entityView = $view_builder
      ->view($entity, 'pdf');;
Posted by: Guest on May-07-2020

Browse Popular Code Answers by Language