You are here

public function ParagraphSetForm::buildForm in Paragraphs frontend ui 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

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

Return value

array The form structure.

Overrides EntityForm::buildForm

File

src/Form/ParagraphSetForm.php, line 18

Class

ParagraphSetForm
Form controller for Paragraph set edit forms.

Namespace

Drupal\paragraphs_frontend_ui\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {

  /* @var $entity \Drupal\paragraphs_frontend_ui\Entity\ParagraphSet */
  $form = parent::buildForm($form, $form_state);
  $entity = $this->entity;
  return $form;
}