You are here

public function ActivationCheck::__construct in Colorbox 8

Create an instace of ActivationCheck.

File

src/ActivationCheck.php, line 30

Class

ActivationCheck
Implementation of ActivationCheckInterface.

Namespace

Drupal\colorbox

Code

public function __construct(ConfigFactoryInterface $config, RequestStack $request) {
  $this->settings = $config
    ->get('colorbox.settings');
  $this->request = $request
    ->getCurrentRequest();
}