summaryrefslogtreecommitdiffstats
path: root/core/modules/color/color.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/color/color.module')
-rw-r--r--core/modules/color/color.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index 9ca7870..3555296 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -415,7 +415,7 @@ function color_scheme_form_submit($form, FormStateInterface $form_state) {
$memory_limit = ini_get('memory_limit');
$size = Bytes::toInt($memory_limit);
if (!Environment::checkMemoryLimit($usage + $required, $memory_limit)) {
- drupal_set_message(t('There is not enough memory available to PHP to change this theme\'s color scheme. You need at least %size more. Check the <a href="http://php.net/manual/ini.core.php#ini.sect.resource-limits">PHP documentation</a> for more information.', ['%size' => format_size($usage + $required - $size)]), 'error');
+ \Drupal::messenger()->addError(t('There is not enough memory available to PHP to change this theme\'s color scheme. You need at least %size more. Check the <a href="http://php.net/manual/ini.core.php#ini.sect.resource-limits">PHP documentation</a> for more information.', ['%size' => format_size($usage + $required - $size)]));
return;
}
}