public function PageController::__construct in Restrict IP 8
Same name and namespace in other branches
- 8.2 src/Controller/PageController.php \Drupal\restrict_ip\Controller\PageController::__construct()
- 3.x src/Controller/PageController.php \Drupal\restrict_ip\Controller\PageController::__construct()
* Constructs the PageController object for the Restrict IP module * *
Parameters
\Drupal\Core\Form\FormBuilderInterface $formBuilder: * The Form Builder service * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory * The Config Factory service * @param \Drupal\Core\Session\AccountProxyInterface $currentUser; * The current user * @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler * The Module Handler service
File
- src/
Controller/ PageController.php, line 58
Class
Namespace
Drupal\restrict_ip\ControllerCode
public function __construct(FormBuilderInterface $formBuilder, ConfigFactoryInterface $configFactory, AccountProxyInterface $currentUser, ModuleHandlerInterface $moduleHandler) {
$this->formBuilder = $formBuilder;
$this->configFactory = $configFactory;
$this->currentUser = $currentUser;
$this->moduleHandler = $moduleHandler;
}