public function YamlFormElementManagerInterface::getElementInstance in YAML Form 8
Get a form element plugin instance for an element.
Parameters
array $element: An associative array containing an element with a #type property.
Return value
\Drupal\yamlform\YamlFormElementInterface A form element plugin instance
1 method overrides YamlFormElementManagerInterface::getElementInstance()
- YamlFormElementManager::getElementInstance in src/
YamlFormElementManager.php - Get a form element plugin instance for an element.
File
- src/
YamlFormElementManagerInterface.php, line 64
Class
- YamlFormElementManagerInterface
- Collects available form elements.
Namespace
Drupal\yamlformCode
public function getElementInstance(array $element);