You are here

public function KeyPluginDeleteFormInterface::buildDeleteForm in Key 8

Form constructor.

Allows a plugin to modify the form displayed when confirming the deletion of a key. It could, for example, add additional warning text or fields.

Parameters

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

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

Return value

array The form structure.

File

src/Plugin/KeyPluginDeleteFormInterface.php, line 27

Class

KeyPluginDeleteFormInterface
Provides an interface for plugins that integrate with the delete form.

Namespace

Drupal\key\Plugin

Code

public function buildDeleteForm(array &$form, FormStateInterface $form_state);