$this->
formatPlural( count($config_objects),
'Unable to install @extension, %config_names already exists in active configuration.',
'Unable to install @extension, %config_names already exist in active configuration.',
[ '%config_names' =>
implode(', ',
$config_objects),
'@extension' =>
$theme,
]) );
} catch (UnmetDependenciesException
$e) { $this->
messenger()->
addError($e->
getTranslatedMessage($this->
getStringTranslation(),
$theme));
} catch (MissingDependencyException
$e) { $this->
messenger()->
addError($this->
t('Unable to install @theme due to missing module dependencies.',
['@theme' =>
$theme]));
} return $this->
redirect('system.themes_page'
);
} throw new AccessDeniedHttpException();
}