public function AddHttpHeaders::__construct in Access unpublished 8
Constructs a new response subscriber.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory service.
\Drupal\access_unpublished\TokenGetter $tokenGetter: The token getter service.
File
- src/
EventSubscriber/ AddHttpHeaders.php, line 38
Class
- AddHttpHeaders
- Add new HTTP headers as added in settings form.
Namespace
Drupal\access_unpublished\EventSubscriberCode
public function __construct(ConfigFactoryInterface $configFactory, TokenGetter $tokenGetter) {
$this->config = $configFactory
->get('access_unpublished.settings');
$this->tokenGetter = $tokenGetter;
}