public function RemoveXFrameOptionsSubscriber::__construct in Allow site iframing 8
Same name and namespace in other branches
- 3.0.x src/EventSubscriber/RemoveXFrameOptionsSubscriber.php \Drupal\allow_iframed_site\EventSubscriber\RemoveXFrameOptionsSubscriber::__construct()
RemoveXFrameOptionsSubscriber constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: ConfigFactory.
\Drupal\Core\Executable\ExecutableManagerInterface $condition_manager: ConditionManager.
File
- src/
EventSubscriber/ RemoveXFrameOptionsSubscriber.php, line 39
Class
- RemoveXFrameOptionsSubscriber
- An event subscriber to remove the X-Frame-Options header.
Namespace
Drupal\allow_iframed_site\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config_factory, ExecutableManagerInterface $condition_manager) {
$this->config = $config_factory
->get('allow_iframed_site.settings');
$this->conditionManager = $condition_manager;
}