You are here

public function MediaSettingsForm::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/Form/MediaSettingsForm.php \Drupal\media\Form\MediaSettingsForm::__construct()
  2. 9 core/modules/media/src/Form/MediaSettingsForm.php \Drupal\media\Form\MediaSettingsForm::__construct()

MediaSettingsForm constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\media\IFrameUrlHelper $iframe_url_helper: The iFrame URL helper service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides ConfigFormBase::__construct

File

core/modules/media/src/Form/MediaSettingsForm.php, line 43

Class

MediaSettingsForm
Provides a form to configure Media settings.

Namespace

Drupal\media\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, IFrameUrlHelper $iframe_url_helper, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($config_factory);
  $this->iFrameUrlHelper = $iframe_url_helper;
  $this->entityTypeManager = $entity_type_manager;
}