You are here

public function YamlFormThirdPartySettingsManager::buildForm in YAML Form 8

Third party settings form constructor.

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 The form structure.

Overrides YamlFormThirdPartySettingsManagerInterface::buildForm

File

src/YamlFormThirdPartySettingsManager.php, line 102

Class

YamlFormThirdPartySettingsManager
Form third party settings manager.

Namespace

Drupal\yamlform

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['third_party_settings'] = [
    '#tree' => TRUE,
  ];
  $form['#after_build'] = [
    [
      $this,
      'afterBuild',
    ],
  ];
  return $form;
}