You are here

public function OEmbedResourceUrlAlterEvent::__construct in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/media_event_dispatcher/src/Event/Media/OEmbedResourceUrlAlterEvent.php \Drupal\media_event_dispatcher\Event\Media\OEmbedResourceUrlAlterEvent::__construct()

OEmbedResourceUrlAlterEvent constructor.

Parameters

array &$parsedUrl: The oEmbed URL that data will be retrieved from, parsed into an array by \Drupal\Component\Utility\UrlHelper::parse().

\Drupal\media\OEmbed\Provider $provider: The oEmbed provider for the resource to be retrieved.

File

modules/media_event_dispatcher/src/Event/Media/OEmbedResourceUrlAlterEvent.php, line 41

Class

OEmbedResourceUrlAlterEvent
Class OEmbedResourceUrlAlterEvent.

Namespace

Drupal\media_event_dispatcher\Event\Media

Code

public function __construct(array &$parsedUrl, Provider $provider) {
  $this->parsedUrl =& $parsedUrl;
  $this->provider = $provider;
}