// Display a list of required themes that have to be installed as well.
$items[]=$this->formatPlural(count($dependencies),'You must enable the @required theme to install @theme.','You must enable the @required themes to install @theme.',[
'@theme'=>$get_label($theme),
// It is safe to implode this because theme names are not translated
// Add the list of experimental themes after any other messages.
$items[]=$this->t('The following themes are experimental: @themes',['@themes'=>implode(', ',array_map($get_label,array_filter($themes,$is_experimental)))]);
// The status message depends on whether an admin theme is currently
// in use: an empty string means the admin theme is set to be the
// default theme.
$admin_theme=$config->get('admin');
if(!empty($admin_theme)&&$admin_theme!==$theme){
$this->messenger()
->addStatus($this->t('Please note that the administration theme is still set to the %admin_theme theme; consequently, the theme on this page remains unchanged. All non-administrative sections of the site, however, will show the selected %selected_theme theme by default.',[
'value'=>t('Experimental modules found: %module_list. <a href=":url">Experimental modules</a> are provided for testing purposes only. Use at your own risk.',['%module_list'=>implode(', ',$experimental),':url'=>'https://www.drupal.org/core/experimental']),
'value'=>t('Experimental modules found: %module_list. <a href=":url">Experimental modules</a> are provided for testing purposes only. Use at your own risk.',['%module_list'=>implode(', ',$experimental_modules),':url'=>'https://www.drupal.org/core/experimental']),
'value'=>t('Experimental themes found: %theme_list. Experimental themes are provided for testing purposes only. Use at your own risk.',['%theme_list'=>implode(', ',$experimental_themes)]),