public function YamlFormElementInterface::prepare in YAML Form 8
Prepare an element to be rendered within a form.
Parameters
array $element: An element.
\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.
1 method overrides YamlFormElementInterface::prepare()
- YamlFormElementBase::prepare in src/
YamlFormElementBase.php - Prepare an element to be rendered within a form.
File
- src/
YamlFormElementInterface.php, line 227
Class
- YamlFormElementInterface
- Defines the interface for form elements.
Namespace
Drupal\yamlformCode
public function prepare(array &$element, YamlFormSubmissionInterface $yamlform_submission);