You are here

public function ComponentFormBase::ajaxCallback in Layout Paragraphs 2.0.x

Ajax form callback.

Returns the layout paragraphs behavior form, which includes the orphaned items element when necessary.

Parameters

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

array The render array.

File

src/Form/ComponentFormBase.php, line 421

Class

ComponentFormBase
Class LayoutParagraphsComponentFormBase.

Namespace

Drupal\layout_paragraphs\Form

Code

public function ajaxCallback(array $form, FormStateInterface $form_state) {
  return $form['layout_paragraphs'];
}