public static function ParagraphsWidget::updateConversionForm

Ajax callback for the style group dropdown.

File

paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php, line 1039

Class

ParagraphsWidget
Plugin implementation of the 'entity_reference_revisions paragraphs' widget.

Namespace

Drupal\paragraphs\Plugin\Field\FieldWidget

Code

public static function updateConversionForm(array $form, FormStateInterface $form_state) {
  $group_select = $form_state
    ->getTriggeringElement();

  // Gets the behavior plugin settings form.
  $settings_form = NestedArray::getValue($form, array_slice($group_select['#array_parents'], 0, -2));
  return $settings_form['conversion_plugins']['form'];
}