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

Breadcrumb

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

interface OpenerResolverInterface

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

This is intended to be a very thin interface-verifying wrapper around services which implement \Drupal\media_library\MediaLibraryOpenerInterface. It is not an API and should not be extended or used by code that does not interact with the Media Library module.

@internal This interface is an internal part of the modal media library dialog and is only implemented by \Drupal\media_library\OpenerResolver. It is not a public API.

Hierarchy

  • interface \Drupal\media_library\OpenerResolverInterface

Expanded class hierarchy of OpenerResolverInterface

All classes that implement OpenerResolverInterface

3 files declare their use of OpenerResolverInterface
AddFormBase.php in core/modules/media_library/src/Form/AddFormBase.php
FileUploadForm.php in core/modules/media_library/src/Form/FileUploadForm.php
OEmbedForm.php in core/modules/media_library/src/Form/OEmbedForm.php

File

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

Namespace

Drupal\media_library
View source
interface OpenerResolverInterface {
    
    /**
     * Gets a media library opener service from the container.
     *
     * @param \Drupal\media_library\MediaLibraryState $state
     *   A value object representing the state of the media library.
     *
     * @return \Drupal\media_library\MediaLibraryOpenerInterface
     *   The media library opener service.
     *
     * @throws \RuntimeException
     *   If the requested opener service does not implement
     *   \Drupal\media_library\MediaLibraryOpenerInterface.
     */
    public function get(MediaLibraryState $state);

}

Members

Title Sort descending Modifiers Object type Summary
OpenerResolverInterface::get public function Gets a media library opener service from the container.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal