Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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[] = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment