public function OEmbedForm::__construct in Media Directories 2.x
Same name and namespace in other branches
- 8 modules/media_directories_ui/src/Form/OEmbedForm.php \Drupal\media_directories_ui\Form\OEmbedForm::__construct()
- 3.x modules/media_directories_ui/src/Form/OEmbedForm.php \Drupal\media_directories_ui\Form\OEmbedForm::__construct()
Constructs a new OEmbedForm.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Drupal\Core\Utility\Token $token: The token service.
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
\Drupal\media\OEmbed\UrlResolverInterface $url_resolver: The oEmbed URL resolver service.
\Drupal\media\OEmbed\ResourceFetcherInterface $resource_fetcher: The oEmbed resource fetcher service.
Overrides AddMediaFormBase::__construct
File
- modules/
media_directories_ui/ src/ Form/ OEmbedForm.php, line 53
Class
- OEmbedForm
- A form to add remote content using OEmbed resources.
Namespace
Drupal\media_directories_ui\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountProxyInterface $current_user, Token $token, ThemeManagerInterface $theme_manager, UrlResolverInterface $url_resolver, ResourceFetcherInterface $resource_fetcher) {
parent::__construct($entity_type_manager, $current_user, $token, $theme_manager);
$this->urlResolver = $url_resolver;
$this->resourceFetcher = $resource_fetcher;
}