You are here

function layout_paragraphs_theme in Layout Paragraphs 2.0.x

Same name and namespace in other branches
  1. 1.0.x layout_paragraphs.module \layout_paragraphs_theme()

Implements hook_theme().

File

./layout_paragraphs.module, line 30
Contains layout_paragraphs.module.

Code

function layout_paragraphs_theme() {
  return [
    'layout_paragraphs' => [
      'variables' => [
        'elements' => '',
        'content' => '',
      ],
    ],
    'layout_paragraphs_builder' => [
      'variables' => [
        'attributes' => [],
        'id' => '',
        'root_components' => [],
        'is_empty' => FALSE,
        'empty_message' => '',
        'insert_button' => '',
        'translation_warning' => '',
      ],
    ],
    'layout_paragraphs_builder_formatter' => [
      'variables' => [
        'link_url' => NULL,
        'link_text' => NULL,
        'field_label' => NULL,
        'is_empty' => FALSE,
        'root_components' => [],
      ],
    ],
    'layout_paragraphs_builder_controls' => [
      'variables' => [
        'attributes' => [],
        'label' => NULL,
        'edit_attributes' => [],
        'delete_attributes' => [],
      ],
    ],
    'layout_paragraphs_builder_component_menu' => [
      'variables' => [
        'attributes' => [],
        'types' => NULL,
      ],
    ],
  ];
}