public function WebformElementInterface::alterForm in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::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.
1 method overrides WebformElementInterface::alterForm()
- WebformElementBase::alterForm in src/
Plugin/ WebformElementBase.php - Alter an element's associated form.
File
- src/
Plugin/ WebformElementInterface.php, line 355
Class
- WebformElementInterface
- Defines the interface for webform elements.
Namespace
Drupal\webform\PluginCode
public function alterForm(array &$element, array &$form, FormStateInterface $form_state);