You are here

public function PageController::configPage in Restrict IP 8

Same name and namespace in other branches
  1. 8.2 src/Controller/PageController.php \Drupal\restrict_ip\Controller\PageController::configPage()
  2. 3.x src/Controller/PageController.php \Drupal\restrict_ip\Controller\PageController::configPage()

*

Overrides PageControllerInterface::configPage

1 string reference to 'PageController::configPage'
restrict_ip.routing.yml in ./restrict_ip.routing.yml
restrict_ip.routing.yml

File

src/Controller/PageController.php, line 83

Class

PageController

Namespace

Drupal\restrict_ip\Controller

Code

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