You are here

public function ProtectedPagesController::__construct in Protected Pages 8

Constructs a ProtectedPagesController object.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\protected_pages\ProtectedPagesStorage $protectedPagesStorage: The protected pages storage service.

File

src/Controller/ProtectedPagesController.php, line 39

Class

ProtectedPagesController
Controller for listing protected pages.

Namespace

Drupal\protected_pages\Controller

Code

public function __construct(RendererInterface $renderer, ProtectedPagesStorage $protectedPagesStorage) {
  $this->renderer = $renderer;
  $this->protectedPagesStorage = $protectedPagesStorage;
}