You are here

public function PanelizerInterface::setDefaultPanelsDisplay in Panelizer 8.4

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

Parameters

$name: The name of the default.

$entity_type_id: The entity type id.

$bundle: The bundle.

$view_mode: The view mode.

\Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant $panels_display: The Panels display to use as the default.

Throws

\Drupal\panelizer\Exception\PanelizerException When a display can't be found for the given entity type, bundle and view mode.

1 method overrides PanelizerInterface::setDefaultPanelsDisplay()
Panelizer::setDefaultPanelsDisplay in src/Panelizer.php

File

src/PanelizerInterface.php, line 125

Class

PanelizerInterface
Interface for the Panelizer service.

Namespace

Drupal\panelizer

Code

public function setDefaultPanelsDisplay($name, $entity_type_id, $bundle, $view_mode, PanelsDisplayVariant $panels_display);