You are here

public function PanelizerInterface::getPanelsDisplay in Panelizer 8.3

Same name and namespace in other branches
  1. 8.5 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::getPanelsDisplay()
  2. 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\panelizer

Code

public function getPanelsDisplay(FieldableEntityInterface $entity, $view_mode, EntityViewDisplayInterface $display = NULL);