function OEmbedIframeController::__construct
Same name in other branches
- 9 core/modules/media/src/Controller/OEmbedIframeController.php \Drupal\media\Controller\OEmbedIframeController::__construct()
- 8.9.x core/modules/media/src/Controller/OEmbedIframeController.php \Drupal\media\Controller\OEmbedIframeController::__construct()
- 10 core/modules/media/src/Controller/OEmbedIframeController.php \Drupal\media\Controller\OEmbedIframeController::__construct()
Constructs an OEmbedIframeController instance.
Parameters
\Drupal\media\OEmbed\ResourceFetcherInterface $resource_fetcher: The oEmbed resource fetcher service.
\Drupal\media\OEmbed\UrlResolverInterface $url_resolver: The oEmbed URL resolver service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Psr\Log\LoggerInterface $logger: The logger channel.
\Drupal\media\IFrameUrlHelper $iframe_url_helper: The iFrame URL helper service.
File
-
core/
modules/ media/ src/ Controller/ OEmbedIframeController.php, line 88
Class
- OEmbedIframeController
- Controller which renders an oEmbed resource in a bare page (without blocks).
Namespace
Drupal\media\ControllerCode
public function __construct(ResourceFetcherInterface $resource_fetcher, UrlResolverInterface $url_resolver, RendererInterface $renderer, LoggerInterface $logger, IFrameUrlHelper $iframe_url_helper) {
$this->resourceFetcher = $resource_fetcher;
$this->urlResolver = $url_resolver;
$this->renderer = $renderer;
$this->logger = $logger;
$this->iFrameUrlHelper = $iframe_url_helper;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.