Skip to content
Snippets Groups Projects
Commit b25a4255 authored by Pavlo Tyshchenko's avatar Pavlo Tyshchenko
Browse files

Issue #3231760 by opi: addNotice Method does not exist

parent fdb318a7
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ class AdvancedTextFormatter extends FormatterBase {
break;
case static::FORMAT_PHP:
\Drupal::messenger()->addNotice(t('The PHP filter has been deprecated. Please use the "Limit allowed HTML tags" filter instead.'));
$this->messenger()->addWarning(t('The PHP filter has been deprecated. Please use the "Limit allowed HTML tags" filter instead.'));
case static::FORMAT_LIMIT_HTML:
$text = [];
......@@ -287,7 +287,7 @@ class AdvancedTextFormatter extends FormatterBase {
break;
case static::FORMAT_PHP:
\Drupal::messenger()->addNotice(t('The PHP filter has been deprecated. Please use the "Limit allowed HTML tags" filter instead.'));
$this->messenger()->addWarning(t('The PHP filter has been deprecated. Please use the "Limit allowed HTML tags" filter instead.'));
case static::FORMAT_LIMIT_HTML:
$output = Xss::filter($output, $this->getSetting('allowed_html'));
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment