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

Breadcrumb

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

function OpenerResolver::addOpener

Registers an opener.

Parameters

\Drupal\media_library\MediaLibraryOpenerInterface $opener: The opener.

string $id: The service ID.

File

core/modules/media_library/src/OpenerResolver.php, line 32

Class

OpenerResolver
Defines a class to resolve media library openers.

Namespace

Drupal\media_library

Code

public function addOpener(MediaLibraryOpenerInterface $opener, string $id) : void {
    $this->openers[$id] = $opener;
}

API Navigation

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