You are here

public function PanelizerInterface::isPanelized in Panelizer 8.3

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

Checks if the given entity type, bundle and view mode are panelized.

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

bool TRUE if panelized; otherwise FALSE.

1 method overrides PanelizerInterface::isPanelized()
Panelizer::isPanelized in src/Panelizer.php
Checks if the given entity type, bundle and view mode are panelized.

File

src/PanelizerInterface.php, line 150

Class

PanelizerInterface
Interface for the Panelizer service.

Namespace

Drupal\panelizer

Code

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