function template_preprocess_paragraphs_summary

Prepares variables for.

Default template: paragraphs-summary.html.twig

Parameters

array $variables: An associative array containing:

  • buttons: An array of buttons to display in the modal form.

File

paragraphs/paragraphs.module, line 519
Contains paragraphs.module

Code

function template_preprocess_paragraphs_summary(&$variables) {
  $variables['content'] = $variables['element']['#summary']['content'];
  $variables['behaviors'] = $variables['element']['#summary']['behaviors'];
  $variables['expanded'] = !empty($variables['element']['#expanded']);
}