public function PanelizerInterface::getDefaultPanelsDisplays in Panelizer 8.4
Same name and namespace in other branches
- 8.5 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::getDefaultPanelsDisplays()
- 8.3 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::getDefaultPanelsDisplays()
Gets the default Panels displays for an entity type, bundle and view mode.
Parameters
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[] An associative array of Panels displays, keyed by the machine name of the default if panelized; NULL otherwise. All panelized view modes will have at least one named 'default'.
1 method overrides PanelizerInterface::getDefaultPanelsDisplays()
- Panelizer::getDefaultPanelsDisplays in src/
Panelizer.php - Gets the default Panels displays for an entity type, bundle and view mode.
File
- src/
PanelizerInterface.php, line 85
Class
- PanelizerInterface
- Interface for the Panelizer service.
Namespace
Drupal\panelizerCode
public function getDefaultPanelsDisplays($entity_type_id, $bundle, $view_mode, EntityViewDisplayInterface $display = NULL);