From acc07c879b34f4fc8958626afb19a9cfe56c17c1 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:46:15 +0100 Subject: [PATCH] TASK: Move `moveNodeStrategy` to Neos UI --- .../NodeMove/Dto/RelationDistributionStrategy.php | 10 ---------- Neos.Neos/NodeTypes/Mixin/Content.yaml | 2 -- Neos.Neos/NodeTypes/Mixin/Document.yaml | 2 -- 3 files changed, 14 deletions(-) diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeMove/Dto/RelationDistributionStrategy.php b/Neos.ContentRepository.Core/Classes/Feature/NodeMove/Dto/RelationDistributionStrategy.php index 45213be5116..8ca1fd33f08 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeMove/Dto/RelationDistributionStrategy.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeMove/Dto/RelationDistributionStrategy.php @@ -39,16 +39,6 @@ public static function default(): self return self::STRATEGY_GATHER_ALL; } - public static function fromName(string $name): ?self - { - foreach (self::cases() as $status) { - if ($name === $status->name) { - return $status; - } - } - return null; - } - public function jsonSerialize(): string { return $this->value; diff --git a/Neos.Neos/NodeTypes/Mixin/Content.yaml b/Neos.Neos/NodeTypes/Mixin/Content.yaml index b62eb7f9b82..146c402c141 100644 --- a/Neos.Neos/NodeTypes/Mixin/Content.yaml +++ b/Neos.Neos/NodeTypes/Mixin/Content.yaml @@ -24,5 +24,3 @@ inspector: editorOptions: baseNodeType: 'Neos.Neos:Content' - options: - moveNodeStrategy: STRATEGY_SCATTER diff --git a/Neos.Neos/NodeTypes/Mixin/Document.yaml b/Neos.Neos/NodeTypes/Mixin/Document.yaml index 62406b1e95c..c13185e412a 100644 --- a/Neos.Neos/NodeTypes/Mixin/Document.yaml +++ b/Neos.Neos/NodeTypes/Mixin/Document.yaml @@ -66,5 +66,3 @@ inspector: group: 'visibility' position: 40 - options: - moveNodeStrategy: STRATEGY_GATHER_ALL