You are here

public function PageController::moduleSettingsPage in Color API 8

Defines the Color API module settings page.

Callback for route: colorapi.color_settings.

Overrides ColorapiPageControllerInterface::moduleSettingsPage

1 string reference to 'PageController::moduleSettingsPage'
colorapi.routing.yml in ./colorapi.routing.yml
colorapi.routing.yml

File

src/Controller/PageController.php, line 48

Class

PageController
Page controller for the Colorapi module.

Namespace

Drupal\colorapi\Controller

Code

public function moduleSettingsPage() {
  return [
    '#prefix' => '<div id="colorapi_module_settings_page">',
    '#suffix' => '</div>',
    'form' => $this->formBuilder
      ->getForm('Drupal\\colorapi\\Form\\ConfigForm'),
  ];
}