You are here

public function PanelizerEntityInterface::getDefaultDisplay in Panelizer 8.5

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

Creates a default Panels display from the core Entity display.

As much as possible, this should attempt to make the settings on the Panels display match the existing core settings, so that ideally the user doesn't notice any change upon Panelizing an entity's view mode.

Parameters

\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The entity view display holding the display options configured for the entity components.

string $bundle: The bundle to panelize.

string $view_mode: The view mode to panelize.

Return value

\Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant

1 method overrides PanelizerEntityInterface::getDefaultDisplay()
PanelizerEntityBase::getDefaultDisplay in src/Plugin/PanelizerEntityBase.php
Creates a default Panels display from the core Entity display.

File

src/Plugin/PanelizerEntityInterface.php, line 38

Class

PanelizerEntityInterface
Defines an interface for Panelizer entity plugins.

Namespace

Drupal\panelizer\Plugin

Code

public function getDefaultDisplay(EntityViewDisplayInterface $display, $bundle, $view_mode);