You are here

public function JavascriptCoreLibrariesDeleteForm::buildForm in JavaScript Libraries Manager 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 ConfirmFormBase::buildForm

File

src/Form/JavascriptCoreLibrariesDeleteForm.php, line 59
Contains \Drupal\javascript_libraries\Form\JavascriptLibrariesDeleteForm.

Class

JavascriptCoreLibrariesDeleteForm

Namespace

Drupal\javascript_libraries\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $library = NULL) {
  $this->id = $library;
  return parent::buildForm($form, $form_state);
}