Commit 6f6e3ce9 authored by catch's avatar catch
Browse files

Issue #3241268 by alexpott, daffie:...

Issue #3241268 by alexpott, daffie: core/modules/node/tests/modules/node_test/node_test.module cause deprecations on PHP 8.1
parent a64191dd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -18,6 +18,9 @@
 * Implements hook_ENTITY_TYPE_view() for node entities.
 */
function node_test_node_view(array &$build, NodeInterface $node, EntityViewDisplayInterface $display, $view_mode) {
  if ($node->isNew()) {
    return;
  }
  if ($view_mode == 'rss') {
    // Add RSS elements and namespaces when building the RSS feed.
    $node->rss_elements[] = [