function MediaLibraryServiceProvider::register

Same name in other branches
  1. 11.x core/modules/media_library/src/MediaLibraryServiceProvider.php \Drupal\media_library\MediaLibraryServiceProvider::register()

Overrides ServiceProviderInterface::register

File

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

Class

MediaLibraryServiceProvider
Service provider for media library services.

Namespace

Drupal\media_library

Code

public function register(ContainerBuilder $container) {
    $container->registerForAutoconfiguration(MediaLibraryOpenerInterface::class)
        ->addTag('media_library.opener');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.