function public function FormInterface::alterFormElement

8.x-3.x FormInterface.php public FormInterface::alterFormElement(Element $form, FormStateInterface $form_state, $form_id = NULL)

The alter method to store the code.

Parameters

\Drupal\bootstrap\Utility\Element $form: The Element object 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.

Class

FormInterface
Defines the interface for an object oriented form alter.

Namespace

Drupal\bootstrap\Plugin\Form

Source src/Plugin/Form/FormInterface.php (line 39)

public function alterFormElement(Element $form, FormStateInterface $form_state, $form_id = NULL);