You are here

public function FormInterface::alterForm in Express 8

The alter method to store the code.

Parameters

array $form: Nested array of form elements that comprises the form.

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

string $form_id: String representing the name of the form itself. Typically this is the name of the function that generated the form.

2 methods override FormInterface::alterForm()
FormBase::alterForm in themes/contrib/bootstrap/src/Plugin/Form/FormBase.php
The alter method to store the code.
SettingBase::alterForm in themes/contrib/bootstrap/src/Plugin/Setting/SettingBase.php
The alter method to store the code.

File

themes/contrib/bootstrap/src/Plugin/Form/FormInterface.php, line 30
Contains \Drupal\bootstrap\Plugin\Form\FormInterface.

Class

FormInterface
Defines the interface for an object oriented form alter.

Namespace

Drupal\bootstrap\Plugin\Form

Code

public function alterForm(array &$form, FormStateInterface $form_state, $form_id = NULL);