public function WebformElementManager::initializeElement in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementManager.php \Drupal\webform\Plugin\WebformElementManager::initializeElement()
Build a Webform element.
Parameters
array $element: An associative array containing an element with a #type property.
Overrides WebformElementManagerInterface::initializeElement
File
- src/
Plugin/ WebformElementManager.php, line 157
Class
- WebformElementManager
- Provides a plugin manager for webform element plugins.
Namespace
Drupal\webform\PluginCode
public function initializeElement(array &$element) {
$element_plugin = $this
->getElementInstance($element);
$element_plugin
->initialize($element);
}