public function YamlFormElementInterface::form in YAML Form 8
Gets the actual configuration form array to be built.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array An associative array contain the element's configuration form without any default values..
1 method overrides YamlFormElementInterface::form()
- YamlFormElementBase::form in src/
YamlFormElementBase.php - Gets the actual configuration form array to be built.
File
- src/
YamlFormElementInterface.php, line 209
Class
- YamlFormElementInterface
- Defines the interface for form elements.
Namespace
Drupal\yamlformCode
public function form(array $form, FormStateInterface $form_state);