You are here

public function WebformElementManagerInterface::buildElement in Webform 6.x

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

Build a Webform element.

Parameters

array $element: An associative array containing an element with a #type property.

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

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

See also

hook_webform_element_alter()

hook_webform_element_ELEMENT_TYPE_alter()

\Drupal\webform\WebformSubmissionForm::prepareElements

1 method overrides WebformElementManagerInterface::buildElement()
WebformElementManager::buildElement in src/Plugin/WebformElementManager.php
Build a Webform element.

File

src/Plugin/WebformElementManagerInterface.php, line 47

Class

WebformElementManagerInterface
Collects available webform elements.

Namespace

Drupal\webform\Plugin

Code

public function buildElement(array &$element, array $form, FormStateInterface $form_state);