function OpenerResolverInterface::get
Same name in other branches
- 9 core/modules/media_library/src/OpenerResolverInterface.php \Drupal\media_library\OpenerResolverInterface::get()
- 10 core/modules/media_library/src/OpenerResolverInterface.php \Drupal\media_library\OpenerResolverInterface::get()
- 11.x 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_libraryCode
public function get(MediaLibraryState $state);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.