protected function PanelizerEntityViewBuilder::isPanelizerEnabled in Panelizer 8.5
Same name and namespace in other branches
- 8.3 src/PanelizerEntityViewBuilder.php \Drupal\panelizer\PanelizerEntityViewBuilder::isPanelizerEnabled()
- 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\panelizerCode
protected function isPanelizerEnabled(EntityViewDisplayInterface $display) {
return $display
->getThirdPartySetting('panelizer', 'enable', FALSE);
}