function template_preprocess_paragraphs_summary in Paragraphs 8
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.module, line 470 - 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']);
}