public function CandidateNodesRevisionsDeleteForm::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.
string|null $node_type: The node type machine name.
\Drupal\node\NodeInterface|null $node: The node.
Return value
array The form structure.
Overrides ConfirmFormBase::buildForm
File
- src/
Form/ CandidateNodesRevisionsDeleteForm.php, line 72
Class
- CandidateNodesRevisionsDeleteForm
- Provides a candidate node revision deletion confirmation form.
Namespace
Drupal\node_revision_delete\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $node_type = NULL, NodeInterface $node = NULL) {
$this->node = $node;
return parent::buildForm($form, $form_state);
}