You are here

public function XframeSubscriber::__construct in X-Frame-Options Configuration 8

XframeSubscriber constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

File

src/EventSubscriber/XframeSubscriber.php, line 30

Class

XframeSubscriber
Subscribing an event.

Namespace

Drupal\x_frame_options_configuration\EventSubscriber

Code

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