You are here

public function OembedProvidersSettingsForm::__construct in oEmbed Providers 2.x

Same name and namespace in other branches
  1. 1.0.x src/Form/OembedProvidersSettingsForm.php \Drupal\oembed_providers\Form\OembedProvidersSettingsForm::__construct()
  2. 1.1.x src/Form/OembedProvidersSettingsForm.php \Drupal\oembed_providers\Form\OembedProvidersSettingsForm::__construct()

Constructs an OembedProvidersSettingsForm object.

Parameters

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

\Drupal\Core\Cache\CacheBackendInterface $default_cache: Cache backend for default cache.

Overrides ConfigFormBase::__construct

File

src/Form/OembedProvidersSettingsForm.php, line 38

Class

OembedProvidersSettingsForm
Configure oEmbed settings form.

Namespace

Drupal\oembed_providers\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, CacheBackendInterface $default_cache) {
  $this
    ->setConfigFactory($config_factory);
  $this->defaultCache = $default_cache;
}