} else { $this->
messenger()->
addStatus($this->
t('The %theme theme has been installed.',
['%theme' =>
$themes[$theme]->info
['name'
]]));
} } else { $this->
messenger()->
addError($this->
t('The %theme theme was not found.',
['%theme' =>
$theme]));
} } catch (PreExistingConfigException
$e) { $config_objects =
$e->
flattenConfigObjects($e->
getConfigObjects());
$this->
messenger()->
addError( $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,
]) );
}