3 namespace Drupal\{{ machine_name }};
5 use Drupal\Core\Entity\EntityInterface;
6 use Drupal\Core\Entity\EntityViewBuilder;
9 * Provides a view controller for {{ entity_type_label|article|lower }} entity type.
11 class {{ class_prefix }}ViewBuilder extends EntityViewBuilder {
16 protected function getBuildDefaults(EntityInterface $entity, $view_mode) {
17 $build = parent::getBuildDefaults($entity, $view_mode);
18 // The {{ entity_type_label|lower }} has no entity template itself.
19 unset($build['#theme']);