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
......@@ -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[] = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment