diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 7d72c4e8e8dc5eb1e28b7b365eac98802b67e466..16e69636a441bfb3a8358e58782becb6e6d60063 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -26,10 +26,9 @@ /** * @defgroup content_flags Content markers * @{ - * Markers used by mark.html.twig and node_mark() to designate content. + * Markers used by mark.html.twig to designate content. * * @see mark.html.twig - * @see node_mark() */ /** diff --git a/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php b/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php index a8bc970919348b29075d52f272b8768dd5e10e9f..d83b5a76fae4df02df292b80d8f8aa8bd3e42baa 100644 --- a/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php +++ b/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php @@ -83,8 +83,6 @@ public function query() { */ public function render(ResultRow $values) { // Let's default to 'read' state. - // This code shadows node_mark, but it reads from the db directly and - // we already have that info. $mark = MARK_READ; if (\Drupal::currentUser()->isAuthenticated()) { $last_read = $this->getValue($values); diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 7b5a4c6a40e7c31f75c327bd7cd8b4ecd53ba15b..da6f0717533957de29229928db2f081ec7c4a316 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -63,8 +63,12 @@ function node_title_list(StatementInterface $result, $title = NULL) { * * @return int * One of the MARK constants. + * + * @deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. + * @see https://www.drupal.org/node/3514189 */ function node_mark($nid, $timestamp) { + @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3514189', E_USER_DEPRECATED); if (\Drupal::currentUser()->isAnonymous() || !\Drupal::moduleHandler()->moduleExists('history')) { return MARK_READ; } diff --git a/core/modules/node/src/NodeListBuilder.php b/core/modules/node/src/NodeListBuilder.php index 703b93fc5ecfb948f1216da145fda19eff68d776..0fa80dee41157655d81e8f2a65cdd52d26b0f9ad 100644 --- a/core/modules/node/src/NodeListBuilder.php +++ b/core/modules/node/src/NodeListBuilder.php @@ -90,14 +90,9 @@ public function buildHeader() { */ public function buildRow(EntityInterface $entity) { /** @var \Drupal\node\NodeInterface $entity */ - $mark = [ - '#theme' => 'mark', - '#status' => node_mark($entity->id(), $entity->getChangedTime()), - ]; $row['title']['data'] = [ '#type' => 'link', '#title' => $entity->label(), - '#suffix' => ' ' . \Drupal::service('renderer')->render($mark), '#url' => $entity->toUrl(), ]; $row['type'] = node_get_type_label($entity);