Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

drupal 8 entity_view

$view_builder = Drupal::entityTypeManager()
      ->getViewBuilder($entity->getEntityTypeId());
    $entityView = $view_builder
      ->view($entity, 'pdf');;
 
PREVIOUS NEXT
Tagged: #drupal
ADD COMMENT
Topic
Name
6+9 =