public function ParagraphsBehaviorInterface::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.
1 method overrides ParagraphsBehaviorInterface::preprocess()
ParagraphsBehaviorBase::preprocess in paragraphs/src/ParagraphsBehaviorBase.php
Adds a default set of helper variables for preprocessors and templates.

File

paragraphs/src/ParagraphsBehaviorInterface.php, line 82

Class

ParagraphsBehaviorInterface
Provides an interface defining a paragraph behavior.

Namespace

Drupal\paragraphs

Code

public function preprocess(&$variables);