You are here

function paragraphs_edit_preprocess_paragraph in Paragraphs Edit 8

Same name and namespace in other branches
  1. 8.2 paragraphs_edit.module \paragraphs_edit_preprocess_paragraph()

Implements hook_preprocess_HOOK().

File

./paragraphs_edit.module, line 68
Allows users to edit/clone and delete paragraphs.

Code

function paragraphs_edit_preprocess_paragraph(&$variables) {
  if (isset($variables['title_suffix']['contextual_links'])) {
    $variables['content']['contextual_links'] = $variables['title_suffix']['contextual_links'];
    $variables['content']['contextual_links']['#weight'] = -100;
  }
}