class OpenerResolver implements OpenerResolverInterface (View source)

internal  This service is an internal part of the modal media library dialog and does not provide any extension points or public API.
 

Defines a class to get media library openers from the container.

This is intended to be a very thin interface-verifying wrapper around services which implement \Drupal\media_library\MediaLibraryOpenerInterface. It is not an API and should not be extended or used by code that does not interact with the Media Library module.

Traits

ContainerAwareTrait

Methods

get(MediaLibraryState $state)

Gets a media library opener service from the container.

Details

MediaLibraryOpenerInterface get(MediaLibraryState $state)

Gets a media library opener service from the container.

Parameters

MediaLibraryState $state

A value object representing the state of the media library.

Return Value

MediaLibraryOpenerInterface

The media library opener service.

Exceptions

RuntimeException