diff -u b/core/includes/theme.inc b/core/includes/theme.inc --- b/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2022,14 +2022,14 @@ 'variables' => ['style' => NULL], ], 'mark' => [ - 'variables' => ['status' => t('new'), 'type' => 'info'], + 'variables' => ['status' => MARK_NEW], ], 'item_list' => [ 'variables' => ['items' => [], 'title' => '', 'list_type' => 'ul', 'wrapper_attributes' => [], 'attributes' => [], 'empty' => NULL, 'context' => []], 'variables' => ['style' => NULL], ], 'mark' => [ - 'variables' => ['status' => MARK_NEW], + 'variables' => ['status' => t('new'), 'type' => 'info'], ], 'item_list' => [ 'variables' => ['items' => [], 'title' => '', 'list_type' => 'ul', 'wrapper_attributes' => [], 'attributes' => [], 'empty' => NULL, 'context' => []], diff -u b/core/modules/comment/comment.module b/core/modules/comment/comment.module --- b/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -657,13 +657,13 @@ } // Create markers to display the status. - $variables['markers'] = array(); + $variables['markers'] = []; if (isset($variables['status'])) { - $variables['markers'][] = array( + $variables['markers'][] = [ '#theme' => 'mark', '#status' => $variables['status'], '#type' => 'warning', - ); + ]; } // Add comment author user ID. Necessary for the comment-by-viewer library. diff -u b/core/modules/node/node.module b/core/modules/node/node.module --- b/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -539,14 +539,14 @@ } } - $variables['markers'] = array(); + $variables['markers'] = []; // Add a marker if the node is unpublished. - if(!$variables['node']->isPublished()) { - $variables['markers'][] = array( + if (!$variables['node']->isPublished()) { + $variables['markers'][] = [ '#theme' => 'mark', '#status' => 'unpublished', - '#type' => 'warning' - ); + '#type' => 'warning', + ]; } // Add article ARIA role. only in patch2: unchanged: --- a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php @@ -701,7 +701,7 @@ protected function getClassyHash($type, $file) { 'menu.css' => 'c4608b4ac9aafce1f6e0d21c6e6e6ee8', 'messages.css' => '2930ea9bebf4d1658e9bdc3b1f83bd43', 'more-link.css' => 'b2ebfb826e035334340193b42246b180', - 'node.css' => '81ea0a3fef211dbc32549ac7f39ec646', + 'node.css' => '4b14aa6fa55b8540c90860dd95ed51f4', 'pager.css' => 'd10589366720f9c15b66df434baab4da', 'progress.css' => '5147a9b07ede9f456c6a3f3efeb520e1', 'search-results.css' => 'ce3ca8fcd54e72f142ba29da5a3a5c9a',