Skip to content

Commit 8a77688

Browse files
authored
Merge pull request #140 from neos/task-subtree-tag-disabled
TASK: Refactor SubtreeTag references to NeosSubtreeTag.
2 parents 8abccba + 96ec7fc commit 8a77688

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/rules_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ return static function (RectorConfig $rectorConfig): void {
17581758
public function run(NodeLegacyStub $node)
17591759
{
17601760
- return $node->isHidden();
1761-
+ return $node->tags->contain(\Neos\ContentRepository\Core\Feature\SubtreeTagging\Dto\SubtreeTag::disabled());
1761+
+ return $node->tags->contain(\Neos\Neos\Domain\SubtreeTagging\NeosSubtreeTag::disabled());
17621762
}
17631763
}
17641764

src/ContentRepository90/Rules/NodeIsHiddenRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function refactor(Node $node) : ?Node
5252
'tags'
5353
),
5454
'contain',
55-
[$this->nodeFactory->createStaticCall(\Neos\ContentRepository\Core\Feature\SubtreeTagging\Dto\SubtreeTag::class, 'disabled')]
55+
[$this->nodeFactory->createStaticCall(\Neos\Neos\Domain\SubtreeTagging\NeosSubtreeTag::class, 'disabled')]
5656
);
5757
}
5858
}

tests/Rules/NodeIsHiddenRector/Fixture/some_class.php.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SomeClass
2020
{
2121
public function run(NodeLegacyStub $node)
2222
{
23-
return $node->tags->contain(\Neos\ContentRepository\Core\Feature\SubtreeTagging\Dto\SubtreeTag::disabled());
23+
return $node->tags->contain(\Neos\Neos\Domain\SubtreeTagging\NeosSubtreeTag::disabled());
2424
}
2525
}
2626

tests/Sets/ContentRepository90/Fixture/Node/node-hidden.php.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SomeClass extends AnotherClass
2626
{
2727
public function node(\Neos\ContentRepository\Core\Projection\ContentGraph\Node $node)
2828
{
29-
$hidden = $node->tags->contain(\Neos\ContentRepository\Core\Feature\SubtreeTagging\Dto\SubtreeTag::disabled());
29+
$hidden = $node->tags->contain(\Neos\Neos\Domain\SubtreeTagging\NeosSubtreeTag::disabled());
3030
// TODO 9.0 migration: !! Node::setHidden() is not supported by the new CR. Use the "EnableNodeAggregate" or "DisableNodeAggregate" command to change the visibility of the node.
3131

3232

0 commit comments

Comments
 (0)