You are here

public function ParagraphsBehaviorBase::preprocess in Paragraphs 8

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

File

src/ParagraphsBehaviorBase.php, line 99

Class

ParagraphsBehaviorBase

Namespace

Drupal\paragraphs

Code

public function preprocess(&$variables) {
}