You are here

public function PanelizerInterface::getPanelizerSettings in Panelizer 8.3

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

Get the Panelizer settings 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

array An associative array with the following keys:

  • enable (bool): Whether or not this view mode is panelized.
  • field (bool): Whether or not the field is present.
1 method overrides PanelizerInterface::getPanelizerSettings()
Panelizer::getPanelizerSettings in src/Panelizer.php
Get the Panelizer settings for an entity type, bundle and view mode.

File

src/PanelizerInterface.php, line 171

Class

PanelizerInterface
Interface for the Panelizer service.

Namespace

Drupal\panelizer

Code

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