You are here

public function PreviewEnabledAccessCheck::__construct in Preview Link 8

Same name and namespace in other branches
  1. 2.x src/Access/PreviewEnabledAccessCheck.php \Drupal\preview_link\Access\PreviewEnabledAccessCheck::__construct()
  2. 2.0.x src/Access/PreviewEnabledAccessCheck.php \Drupal\preview_link\Access\PreviewEnabledAccessCheck::__construct()

PreviewEnabledAccessCheck constructor.

File

src/Access/PreviewEnabledAccessCheck.php, line 27

Class

PreviewEnabledAccessCheck
Preview link access check.

Namespace

Drupal\preview_link\Access

Code

public function __construct(ConfigFactoryInterface $configFactory) {
  $this->config = $configFactory
    ->get('preview_link.settings');
}