public function AllowedProvidersForm::__construct in oEmbed Providers 1.0.x
Same name and namespace in other branches
- 1.1.x src/Form/AllowedProvidersForm.php \Drupal\oembed_providers\Form\AllowedProvidersForm::__construct()
Constructs an AllowedProvidersForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\oembed_providers\OEmbed\ProviderRepositoryDecorator $provider_repository: The decorated oEmbed ProviderRepository.
Overrides ConfigFormBase::__construct
File
- src/
Form/ AllowedProvidersForm.php, line 39
Class
- AllowedProvidersForm
- Configure allowed providers settings form.
Namespace
Drupal\oembed_providers\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ProviderRepositoryDecorator $provider_repository) {
$this
->setConfigFactory($config_factory);
$this->providerRepository = $provider_repository;
}