You are here

public function DisableForm::buildForm in Content Moderation Notifications 8.3

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 EntityConfirmFormBase::buildForm

File

src/Form/DisableForm.php, line 23

Class

DisableForm
The enable/disable form for content moderation notification entities.

Namespace

Drupal\content_moderation_notifications\Form

Code

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