You are here

public function MediaSourceInfoAlterEvent::__construct in Hook Event Dispatcher 8.2

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

MediaSourceInfoAlterEvent constructor.

Parameters

array &$sources: The array of media source plugin definitions, keyed by plugin ID.

File

modules/media_event_dispatcher/src/Event/Media/MediaSourceInfoAlterEvent.php, line 27

Class

MediaSourceInfoAlterEvent
Class MediaSourceInfoAlterEvent.

Namespace

Drupal\media_event_dispatcher\Event\Media

Code

public function __construct(array &$sources) {
  $this->sources =& $sources;
}