function 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.
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_libraryCode
public function get(MediaLibraryState $state);