public function AccessFilterMiddleware::__construct in Access Filter 8
Constructs a new AccessFilterMiddleware object.
Parameters
\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The decorated kernel.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- src/
AccessFilterMiddleware.php, line 40
Class
- AccessFilterMiddleware
- Provides a HTTP middleware to implement access filtering.
Namespace
Drupal\access_filterCode
public function __construct(HttpKernelInterface $http_kernel, ModuleHandlerInterface $module_handler) {
$this->httpKernel = $http_kernel;
$this->moduleHandler = $module_handler;
}