You are here

protected function PanelizerEntityViewBuilder::isPanelizerEnabled in Panelizer 8.3

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

Check if Panelizer should be used for building this display.

Parameters

\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The display we're building.

Return value

bool

3 calls to PanelizerEntityViewBuilder::isPanelizerEnabled()
PanelizerEntityViewBuilder::buildComponents in src/PanelizerEntityViewBuilder.php
Builds the component fields and properties of a set of entities.
PanelizerEntityViewBuilder::view in src/PanelizerEntityViewBuilder.php
Builds the render array for the provided entity.
PanelizerEntityViewBuilder::viewMultiple in src/PanelizerEntityViewBuilder.php
Builds the render array for the provided entities.

File

src/PanelizerEntityViewBuilder.php, line 148

Class

PanelizerEntityViewBuilder
Entity view builder for entities that can be panelized.

Namespace

Drupal\panelizer

Code

protected function isPanelizerEnabled(EntityViewDisplayInterface $display) {
  return $display
    ->getThirdPartySetting('panelizer', 'enable', FALSE);
}