You are here

public function SophronEventSubscriber::__construct in Sophron 8

Constructs a SophronEventSubscriber object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/EventSubscriber/SophronEventSubscriber.php, line 37

Class

SophronEventSubscriber
Sophron's module Event Subscriber.

Namespace

Drupal\sophron\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->configFactory = $config_factory;
  $this->sophronSettings = $this->configFactory
    ->get('sophron.settings');
}