public function WebformElementManagerInterface::buildElement in Webform 8.5
Same name and namespace in other branches
- 6.x 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_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\PluginCode
public function buildElement(array &$element, array $form, FormStateInterface $form_state);