You are here

public function AllowIframedSiteConfigForm::__construct in Allow site iframing 8

Same name and namespace in other branches
  1. 3.0.x src/Form/AllowIframedSiteConfigForm.php \Drupal\allow_iframed_site\Form\AllowIframedSiteConfigForm::__construct()

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

Overrides ConfigFormBase::__construct

File

src/Form/AllowIframedSiteConfigForm.php, line 30

Class

AllowIframedSiteConfigForm

Namespace

Drupal\allow_iframed_site\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, FactoryInterface $plugin_factory) {
  parent::__construct($config_factory);
  $this->conditions['request_path'] = $plugin_factory
    ->createInstance('request_path');
}