You are here

public function WebformElementBase::alterForm in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::alterForm()

Alter an element's associated form.

Parameters

array $element: An element.

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

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

Overrides WebformElementInterface::alterForm

1 method overrides WebformElementBase::alterForm()
WebformSame::alterForm in src/Plugin/WebformElement/WebformSame.php
Alter an element's associated form.

File

src/Plugin/WebformElementBase.php, line 835

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function alterForm(array &$element, array &$form, FormStateInterface $form_state) {

  // Do nothing.
}