You are here

public function WebformElementManager::initializeElement in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\Plugin

Code

public function initializeElement(array &$element) {
  $element_plugin = $this
    ->getElementInstance($element);
  $element_plugin
    ->initialize($element);
}