diff -u b/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php b/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
--- b/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
+++ b/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
@@ -101,11 +101,11 @@
'#theme' => 'mark',
'#status' => $mark,
'#access' => ($mark == MARK_NEW || $mark == MARK_UPDATED),
- '#cache' => [
- 'contexts' [
+ '#cache' => array(
+ 'contexts' => array(
'user.permissions'
- ],
- ],
+ ),
+ ),
);
return $this->renderLink(\Drupal::service('renderer')->render($build), $values);
}
diff -u b/core/modules/system/templates/mark.html.twig b/core/modules/system/templates/mark.html.twig
--- b/core/modules/system/templates/mark.html.twig
+++ b/core/modules/system/templates/mark.html.twig
@@ -16,15 +16,7 @@
-{% import _self as mark %}
-
-{% if logged_in %}
- {{ mark.text(status) }}
+{% if status is constant('MARK_NEW') %}
+ {{ 'New'|t }}
+{% elseif status is constant('MARK_UPDATED') %}
+ {{ 'Updated'|t }}
+{% elseif status is constant('MARK_READ') %}
+ {{ 'Read'|t }}
{% endif %}
-
-{% macro text(status) %}
- {% if status is constant('MARK_NEW') %}
- {{ 'New'|t }}
- {% elseif status is constant('MARK_UPDATED') %}
- {{ 'Updated'|t }}
- {% elseif status is constant('MARK_READ') %}
- {{ 'Read'|t }}
- {% endif %}
-{% endmacro %}
diff -u b/core/themes/classy/templates/content/mark.html.twig b/core/themes/classy/templates/content/mark.html.twig
--- b/core/themes/classy/templates/content/mark.html.twig
+++ b/core/themes/classy/templates/content/mark.html.twig
@@ -14,15 +14,9 @@
-{% import _self as mark %}
-
{% if logged_in %}
- {{ mark.text(status) }}
-{% endif %}
-
-{% macro text(status) %}
{% if status is constant('MARK_NEW') %}
- {{ 'New'|t }}
+ {{ 'New'|t }}
{% elseif status is constant('MARK_UPDATED') %}
- {{ 'Updated'|t }}
+ {{ 'Updated'|t }}
{% elseif status is constant('MARK_READ') %}
- {{ 'Read'|t }}
+ {{ 'Read'|t }}
{% endif %}
-{% endmacro %}
+{% endif %}
diff -u b/core/themes/stable/templates/content/mark.html.twig b/core/themes/stable/templates/content/mark.html.twig
--- b/core/themes/stable/templates/content/mark.html.twig
+++ b/core/themes/stable/templates/content/mark.html.twig
@@ -14,15 +14,9 @@
-{% import _self as mark %}
-
{% if logged_in %}
- {{ mark.text(status) }}
-{% endif %}
-
-{% macro text(status) %}
{% if status is constant('MARK_NEW') %}
- {{ 'New'|t }}
+ {{ 'New'|t }}
{% elseif status is constant('MARK_UPDATED') %}
- {{ 'Updated'|t }}
+ {{ 'Updated'|t }}
{% elseif status is constant('MARK_READ') %}
- {{ 'Read'|t }}
+ {{ 'Read'|t }}
{% endif %}
-{% endmacro %}
+{% endif %}