function OpenerResolverInterface::get
Same name in other branches
- 9 core/modules/media_library/src/OpenerResolverInterface.php \Drupal\media_library\OpenerResolverInterface::get()
- 8.9.x 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.
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.