You are here

public static function PageController::create in Restrict IP 8

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

*

Overrides ControllerBase::create

File

src/Controller/PageController.php, line 69

Class

PageController

Namespace

Drupal\restrict_ip\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('form_builder'), $container
    ->get('config.factory'), $container
    ->get('current_user'), $container
    ->get('module_handler'));
}