public function PanelizerInterface::getPanelsDisplay in Panelizer 8.5
Same name and namespace in other branches
- 8.3 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::getPanelsDisplay()
- 8.4 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::getPanelsDisplay()
Gets the Panels display for a given entity and view mode.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
string $view_mode: The entity view mode.
\Drupal\Core\Entity\Display\EntityViewDisplayInterface|NULL $display: If the caller already has the correct display, it can optionally be passed in here so the Panelizer service doesn't have to look it up; otherwise, this argument can bo omitted.
Return value
\Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant|NULL The Panels display if panelized; NULL otherwise.
1 method overrides PanelizerInterface::getPanelsDisplay()
- Panelizer::getPanelsDisplay in src/
Panelizer.php - Gets the Panels display for a given entity and view mode.
File
- src/
PanelizerInterface.php, line 46
Class
- PanelizerInterface
- Interface for the Panelizer service.
Namespace
Drupal\panelizerCode
public function getPanelsDisplay(FieldableEntityInterface $entity, $view_mode, EntityViewDisplayInterface $display = NULL);