public function ParagraphsBehaviorBase::preprocess

Adds a default set of helper variables for preprocessors and templates.

This preprocess function is the first in the sequence of preprocessing functions that are called when preparing variables of a paragraph.

Parameters

array $variables: An associative array containing:

  • elements: An array of elements to display in view mode.
  • paragraph: The paragraph object.
  • view_mode: The view mode.

Overrides ParagraphsBehaviorInterface::preprocess

1 method overrides ParagraphsBehaviorBase::preprocess()
ParagraphsGridLayoutPlugin::preprocess in paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsGridLayoutPlugin.php
Adds a default set of helper variables for preprocessors and templates.

File

paragraphs/src/ParagraphsBehaviorBase.php, line 99

Class

ParagraphsBehaviorBase

Namespace

Drupal\paragraphs

Code

public function preprocess(&$variables) {
}