You are here

protected function PanelizerEntityViewBuilder::getFallbackViewBuilder in Panelizer 8.5

Same name and namespace in other branches
  1. 8.3 src/PanelizerEntityViewBuilder.php \Drupal\panelizer\PanelizerEntityViewBuilder::getFallbackViewBuilder()
  2. 8.4 src/PanelizerEntityViewBuilder.php \Drupal\panelizer\PanelizerEntityViewBuilder::getFallbackViewBuilder()

Gets the original view builder for this entity.

Return value

\Drupal\Core\Entity\EntityViewBuilderInterface

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

1 call to PanelizerEntityViewBuilder::getFallbackViewBuilder()
PanelizerEntityViewBuilder::buildComponents in src/PanelizerEntityViewBuilder.php
Builds the component fields and properties of a set of entities.

File

src/PanelizerEntityViewBuilder.php, line 159

Class

PanelizerEntityViewBuilder
Entity view builder for entities that can be panelized.

Namespace

Drupal\panelizer

Code

protected function getFallbackViewBuilder() {
  return $this->entityTypeManager
    ->getHandler($this->entityTypeId, 'fallback_view_builder');
}