You are here

public function FasttoggleSettingsForm::buildForm in Fasttoggle 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/FasttoggleSettingsForm.php \Drupal\fasttoggle\Form\FasttoggleSettingsForm::buildForm()

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/FasttoggleSettingsForm.php, line 38
Contains \Drupal\fasttoggle\Form\FasttoggleSettingsForm.

Class

FasttoggleSettingsForm
Configure fasttoggle settings for this site.

Namespace

Drupal\fasttoggle\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $this->controller = new \Drupal\fasttoggle\Controller\FasttoggleController();
  $this->objectManager = \Drupal::service('plugin.manager.fasttoggle.setting_object');
  $this->groupManager = \Drupal::service('plugin.manager.fasttoggle.setting_group');
  $this->settingManager = \Drupal::service('plugin.manager.fasttoggle.setting');
  $this->contextManager = \Drupal::service('plugin.manager.fasttoggle.context');
  return self::buildFormContent($form, $form_state);
}