public function MediaForm::getMediaLibraryTheme in GridStack 8.2
Returns the available admin theme to fetch the media library styling.
1 call to MediaForm::getMediaLibraryTheme()
- Form::closingForm in src/
Plugin/ gridstack/ stylizer/ Form.php
File
- src/
Plugin/ gridstack/ stylizer/ MediaForm.php, line 144
Class
- MediaForm
- Provides the media form for Layout Builder integration.
Namespace
Drupal\gridstack\Plugin\gridstack\stylizerCode
public function getMediaLibraryTheme() {
$admin_theme = $this->manager
->configLoad('admin', 'system.theme');
if ($admin_theme == 'seven') {
return 'seven/media_library';
}
elseif ($admin_theme == 'claro') {
return 'claro/media_library.theme';
}
// Adminimal, Classy has no media library theme, skip.
return FALSE;
}