public function YamlFormElementBase::initialize in YAML Form 8
Initialize an element to be displayed, rendered, or exported.
Parameters
array $element: An element.
Overrides YamlFormElementInterface::initialize
1 call to YamlFormElementBase::initialize()
- YamlFormLikert::initialize in src/
Plugin/ YamlFormElement/ YamlFormLikert.php - Initialize an element to be displayed, rendered, or exported.
1 method overrides YamlFormElementBase::initialize()
- YamlFormLikert::initialize in src/
Plugin/ YamlFormElement/ YamlFormLikert.php - Initialize an element to be displayed, rendered, or exported.
File
- src/
YamlFormElementBase.php, line 378
Class
- YamlFormElementBase
- Provides a base class for a form element.
Namespace
Drupal\yamlformCode
public function initialize(array &$element) {
// Set element options.
if (isset($element['#options'])) {
$element['#options'] = YamlFormOptions::getElementOptions($element);
}
}