You are here

public function PanelizerInterface::getDefaultPanelsDisplay in Panelizer 8.4

Same name and namespace in other branches
  1. 8.5 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::getDefaultPanelsDisplay()
  2. 8.3 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::getDefaultPanelsDisplay()

Gets one default Panels display for an entity type, bundle and view mode.

Parameters

string $name: The name of the default.

string $entity_type_id: The entity type id.

string $bundle: The bundle.

string $view_mode: The 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 default Panels display with the given name if it exists; otherwise NULL.

1 method overrides PanelizerInterface::getDefaultPanelsDisplay()
Panelizer::getDefaultPanelsDisplay in src/Panelizer.php
Gets one default Panels display for an entity type, bundle and view mode.

File

src/PanelizerInterface.php, line 107

Class

PanelizerInterface
Interface for the Panelizer service.

Namespace

Drupal\panelizer

Code

public function getDefaultPanelsDisplay($name, $entity_type_id, $bundle, $view_mode, EntityViewDisplayInterface $display = NULL);