You are here

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

File

src/ParagraphsBehaviorInterface.php, line 82

Class

ParagraphsBehaviorInterface
Provides an interface defining a paragraph behavior.

Namespace

Drupal\paragraphs

Code

public function preprocess(&$variables);