You are here

public function OpenerResolverInterface::get in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media_library/src/OpenerResolverInterface.php \Drupal\media_library\OpenerResolverInterface::get()

Gets a media library opener service from the container.

Parameters

\Drupal\media_library\MediaLibraryState $state: A value object representing the state of the media library.

Return value

\Drupal\media_library\MediaLibraryOpenerInterface The media library opener service.

Throws

\RuntimeException If the requested opener service does not implement \Drupal\media_library\MediaLibraryOpenerInterface.

1 method overrides OpenerResolverInterface::get()
OpenerResolver::get in core/modules/media_library/src/OpenerResolver.php
Gets a media library opener service from the container.

File

core/modules/media_library/src/OpenerResolverInterface.php, line 33

Class

OpenerResolverInterface
Defines an interface to get a media library opener from the container.

Namespace

Drupal\media_library

Code

public function get(MediaLibraryState $state);