You are here

public function ContentTypeConfigurationDeleteForm::buildForm in Node Revision Delete 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/ContentTypeConfigurationDeleteForm.php, line 60

Class

ContentTypeConfigurationDeleteForm
Provides a content type configuration deletion confirmation form.

Namespace

Drupal\node_revision_delete\Form

Code

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