You are here

public function OEmbedIframeController::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/Controller/OEmbedIframeController.php \Drupal\media\Controller\OEmbedIframeController::__construct()
  2. 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 88

Class

OEmbedIframeController
Controller which renders an oEmbed resource in a bare page (without blocks).

Namespace

Drupal\media\Controller

Code

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;
}