You are here

function hook_layout_paragraph_element_form_alter in Layout Paragraphs 1.0.x

Same name and namespace in other branches
  1. 2.0.x layout_paragraphs.api.php \hook_layout_paragraph_element_form_alter()

Alter the Layout Paragraph Element Form.

Allow others modules to adjust the Layout Paragraph Element Dialog Form..

Parameters

array $element_form: The Layout Paragraph Element Form.

\Drupal\Core\Form\FormStateInterface $element_form_state: The Layout Paragraph Element Form State.

array $parent_form: The Parent Form.

1 invocation of hook_layout_paragraph_element_form_alter()
LayoutParagraphsWidget::entityForm in src/Plugin/Field/FieldWidget/LayoutParagraphsWidget.php
Builds an entity form for a paragraph item.

File

./layout_paragraphs.api.php, line 22
API documentation for Layout Paragraphs module.

Code

function hook_layout_paragraph_element_form_alter(array &$element_form, FormStateInterface &$element_form_state, array $parent_form) {

  // Make custom alterations to adjust the Layout Paragraph Element Form..
}