MediaLibraryEditorOpener
class MediaLibraryEditorOpener implements MediaLibraryOpenerInterface (View source)
| internal | This service is an internal part of Media Library's CKEditor integration. |
The media library opener for text editors.
Properties
| protected ConfigEntityStorageInterface | $filterStorage | The text format entity storage. |
|
| protected ContentEntityStorageInterface | $mediaStorage | The media storage. |
Methods
__construct(EntityTypeManagerInterface $entity_type_manager)
The MediaLibraryEditorOpener constructor.
getSelectionResponse(MediaLibraryState $state, array $selected_ids)
Generates a response after selecting media items in the media library.
Details
__construct(EntityTypeManagerInterface $entity_type_manager)
The MediaLibraryEditorOpener constructor.
AccessResultInterface
checkAccess(MediaLibraryState $state, AccountInterface $account)
Checks media library access.
AjaxResponse
getSelectionResponse(MediaLibraryState $state, array $selected_ids)
Generates a response after selecting media items in the media library.