You are here

public function WebformElementBase::alterForm in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 907

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.
}