Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. OpenerResolverInterface.php

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_library

Code

public function get(MediaLibraryState $state);
RSS feed
Powered by Drupal