function MediaLibraryUiBuilder::dialogOptions
Same name in other branches
- 8.9.x core/modules/media_library/src/MediaLibraryUiBuilder.php \Drupal\media_library\MediaLibraryUiBuilder::dialogOptions()
- 10 core/modules/media_library/src/MediaLibraryUiBuilder.php \Drupal\media_library\MediaLibraryUiBuilder::dialogOptions()
- 11.x core/modules/media_library/src/MediaLibraryUiBuilder.php \Drupal\media_library\MediaLibraryUiBuilder::dialogOptions()
Get media library dialog options.
Return value
array The media library dialog options.
2 calls to MediaLibraryUiBuilder::dialogOptions()
- DrupalMediaLibrary::getConfig in core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ DrupalMediaLibrary.php - Returns the additions to CKEDITOR.config for a specific CKEditor instance.
- MediaLibraryWidget::openMediaLibrary in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - AJAX callback to open the library modal.
File
-
core/
modules/ media_library/ src/ MediaLibraryUiBuilder.php, line 90
Class
- MediaLibraryUiBuilder
- Service which builds the media library.
Namespace
Drupal\media_libraryCode
public static function dialogOptions() {
return [
'dialogClass' => 'media-library-widget-modal',
'title' => t('Add or select media'),
'height' => '75%',
'width' => '75%',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.