You are here

public function PageCacheRequestPrepareSubscriber::__construct in Tome 8

Constructs the EntityPathSubscriber object.

Parameters

\Drupal\tome_static\StackMiddleware\ResettablePageCache $page_cache: The resettable page cache.

File

modules/tome_static/src/EventSubscriber/PageCacheRequestPrepareSubscriber.php, line 29

Class

PageCacheRequestPrepareSubscriber
Prepares for a new request when using page cache.

Namespace

Drupal\tome_static\EventSubscriber

Code

public function __construct(ResettablePageCache $page_cache) {
  $this->pageCache = $page_cache;
}