You are here

public function PanelizerEntityInterface::preprocessViewMode in Panelizer 8.5

Same name and namespace in other branches
  1. 8.3 src/Plugin/PanelizerEntityInterface.php \Drupal\panelizer\Plugin\PanelizerEntityInterface::preprocessViewMode()
  2. 8.4 src/Plugin/PanelizerEntityInterface.php \Drupal\panelizer\Plugin\PanelizerEntityInterface::preprocessViewMode()

Preprocess the variables for the view mode template.

Parameters

array $variables: The variables to pass to the view mode template.

\Drupal\Core\Entity\EntityInterface $entity: The entity.

\Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant $panels_display: The Panels display used to render this entity.

string $view_mode: The view mode.

1 method overrides PanelizerEntityInterface::preprocessViewMode()
PanelizerEntityBase::preprocessViewMode in src/Plugin/PanelizerEntityBase.php
Preprocess the variables for the view mode template.

File

src/Plugin/PanelizerEntityInterface.php, line 68

Class

PanelizerEntityInterface
Defines an interface for Panelizer entity plugins.

Namespace

Drupal\panelizer\Plugin

Code

public function preprocessViewMode(array &$variables, EntityInterface $entity, PanelsDisplayVariant $panels_display, $view_mode);