From 12b6d4121ee0f1e6a7dd23bee9996975be5b8f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anke=20H=C3=A4slich?= Date: Sun, 10 Mar 2024 13:26:33 +0100 Subject: [PATCH] TASK: Adjust usage of `hiddenInIndex` to use `hiddenInMenu` The internal property `hiddenInIndex` was renamed to `hiddenInMenu`. To match this renaming the fusion property `renderHiddenInIndex` is renamed to `renderHiddenInMenu`. Needs: https://github.com/neos/neos-development-collection/pull/4921 --- Classes/Fusion/XmlSitemapUrlsImplementation.php | 14 +++++++------- Resources/Private/Fusion/Helper/SitemapUrls.fusion | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Classes/Fusion/XmlSitemapUrlsImplementation.php b/Classes/Fusion/XmlSitemapUrlsImplementation.php index 786f3d12..42b136bc 100644 --- a/Classes/Fusion/XmlSitemapUrlsImplementation.php +++ b/Classes/Fusion/XmlSitemapUrlsImplementation.php @@ -42,7 +42,7 @@ class XmlSitemapUrlsImplementation extends AbstractFusionObject */ protected array $assetPropertiesByNodeType = []; - protected ?bool $renderHiddenInIndex = null; + protected ?bool $renderHiddenInMenu = null; protected ?bool $includeImageUrls = null; @@ -62,13 +62,13 @@ public function getIncludeImageUrls(): bool return $this->includeImageUrls; } - public function getRenderHiddenInIndex(): bool + public function getRenderHiddenInMenu(): bool { - if ($this->renderHiddenInIndex === null) { - $this->renderHiddenInIndex = (boolean)$this->fusionValue('renderHiddenInIndex'); + if ($this->renderHiddenInMenu === null) { + $this->renderHiddenInMenu = (boolean)$this->fusionValue('renderHiddenInMenu'); } - return $this->renderHiddenInIndex; + return $this->renderHiddenInMenu; } /** @@ -214,13 +214,13 @@ protected function resolveImages(Subtree $subtree, array &$item): void } /** - * Return TRUE/FALSE if the node is currently hidden; taking the "renderHiddenInIndex" configuration + * Return TRUE/FALSE if the node is currently hidden; taking the "renderHiddenInMenu" configuration * of the Menu Fusion object into account. */ protected function isDocumentNodeToBeIndexed(Node $node): bool { return !$this->getNodeType($node)->isOfType('Neos.Seo:NoindexMixin') - && ($this->getRenderHiddenInIndex() || $node->getProperty('hiddenInIndex') !== true) + && ($this->getRenderHiddenInMenu() || $node->getProperty('hiddenInMenu') !== true) && $node->getProperty('metaRobotsNoindex') !== true && ( (string)$node->getProperty('canonicalLink') === '' diff --git a/Resources/Private/Fusion/Helper/SitemapUrls.fusion b/Resources/Private/Fusion/Helper/SitemapUrls.fusion index 4c0c4352..795f486f 100644 --- a/Resources/Private/Fusion/Helper/SitemapUrls.fusion +++ b/Resources/Private/Fusion/Helper/SitemapUrls.fusion @@ -2,5 +2,5 @@ prototype(Neos.Seo:Helper.SitemapUrls) { @class = 'Neos\\Seo\\Fusion\\XmlSitemapUrlsImplementation' startingPoint = null includeImageUrls = false - renderHiddenInIndex = true + renderHiddenInMenu = true }