protected function PanelizerEntityViewBuilder::getPanelsDisplay in Panelizer 8.3
Same name and namespace in other branches
- 8.5 src/PanelizerEntityViewBuilder.php \Drupal\panelizer\PanelizerEntityViewBuilder::getPanelsDisplay()
- 8.4 src/PanelizerEntityViewBuilder.php \Drupal\panelizer\PanelizerEntityViewBuilder::getPanelsDisplay()
Get the Panels display out of an the entity view display
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The display.
$view_mode: The view mode.
Return value
\Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant The Panels display.
File
- src/
PanelizerEntityViewBuilder.php, line 176
Class
- PanelizerEntityViewBuilder
- Entity view builder for entities that can be panelized.
Namespace
Drupal\panelizerCode
protected function getPanelsDisplay(EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
return $this->panelizer
->getPanelsDisplay($entity, $view_mode, $display);
}