Prepares variables for paragraphs_actions component.
Default template: paragraphs-actions.html.twig.
array $variables: An associative array containing:
function template_preprocess_paragraphs_actions(&$variables) {
// Define variables for the template.
$variables += [
'actions' => [],
'dropdown_actions' => [],
];
$element = $variables['element'];
if (!empty($element['actions'])) {
$variables['actions'] = $element['actions'];
}
if (!empty($element['dropdown_actions'])) {
$variables['dropdown_actions'] = $element['dropdown_actions'];
}
}