public function OEmbedIframeController::__construct in Drupal 8
Same name and namespace in other branches
- 9 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 87
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;
}