public function YamlFormEntityThirdPartySettingsForm::form in YAML Form 8
Gets the actual form array to be built.
Overrides EntityForm::form
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
File
- src/
YamlFormEntityThirdPartySettingsForm.php, line 43
Class
- YamlFormEntityThirdPartySettingsForm
- Provides a form to configure third party settings.
Namespace
Drupal\yamlformCode
public function form(array $form, FormStateInterface $form_state) {
$form = $this->settingsManager
->buildForm($form, $form_state);
$form_state
->set('yamlform', $this
->getEntity());
return parent::form($form, $form_state);
}