You are here

public function AdministrationForm::buildForm in Entity connect 8.2

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 ConfigFormBase::buildForm

File

src/Form/AdministrationForm.php, line 34

Class

AdministrationForm
Class DefaultForm.

Namespace

Drupal\entityconnect\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('entityconnect.administration_config');
  $defaults = $config
    ->get();
  self::attach($form, $defaults);
  return parent::buildForm($form, $form_state);
}