You are here

public function DevelopmentEnvironmentController::settingsPage in Development Environment 8

Settings page for the Development Environment module.

Return value

array A render array representing the settings page.

Overrides DevelopmentEnvironmentControllerInterface::settingsPage

1 string reference to 'DevelopmentEnvironmentController::settingsPage'
development_environment.routing.yml in ./development_environment.routing.yml
development_environment.routing.yml

File

src/Controller/DevelopmentEnvironmentController.php, line 221

Class

DevelopmentEnvironmentController
The DevelopmentEnvironmentController class.

Namespace

Drupal\development_environment\Controller

Code

public function settingsPage() {
  $page = [
    '#prefix' => '<div id="development_environment_settings_page">',
    '#suffix' => '</div>',
    'form' => $this->formBuilder
      ->getForm('\\Drupal\\development_environment\\Form\\DevelopmentEnvironmentSettingsForm'),
  ];
  return $page;
}