From c0f57b1b1cd7185df40ede20d48c589ddf547c8e Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sat, 17 Feb 2024 15:28:26 +0100 Subject: [PATCH] TASK: Rename `CreationDialogPropertiesCreationHandler` to `PromotedElementsCreationHandler`. In the future it will also handle references. --- ...ory.php => PromotedElementsCreationHandlerFactory.php} | 2 +- .../Factory/UriPathSegmentNodeCreationHandlerFactory.php | 4 ++-- Configuration/NodeTypes.yaml | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) rename Classes/NodeCreationHandler/Factory/{CreationDialogPropertiesCreationHandlerFactory.php => PromotedElementsCreationHandlerFactory.php} (95%) diff --git a/Classes/NodeCreationHandler/Factory/CreationDialogPropertiesCreationHandlerFactory.php b/Classes/NodeCreationHandler/Factory/PromotedElementsCreationHandlerFactory.php similarity index 95% rename from Classes/NodeCreationHandler/Factory/CreationDialogPropertiesCreationHandlerFactory.php rename to Classes/NodeCreationHandler/Factory/PromotedElementsCreationHandlerFactory.php index e11dd73fc0..be567db543 100644 --- a/Classes/NodeCreationHandler/Factory/CreationDialogPropertiesCreationHandlerFactory.php +++ b/Classes/NodeCreationHandler/Factory/PromotedElementsCreationHandlerFactory.php @@ -19,7 +19,7 @@ * @internal you should not to interact with this factory directly. The node creation handle will already be configured under `nodeCreationHandlers` * @implements ContentRepositoryServiceFactoryInterface */ -final class CreationDialogPropertiesCreationHandlerFactory implements ContentRepositoryServiceFactoryInterface +final class PromotedElementsCreationHandlerFactory implements ContentRepositoryServiceFactoryInterface { public function build(ContentRepositoryServiceFactoryDependencies $serviceFactoryDependencies): NodeCreationHandlerInterface { diff --git a/Classes/NodeCreationHandler/Factory/UriPathSegmentNodeCreationHandlerFactory.php b/Classes/NodeCreationHandler/Factory/UriPathSegmentNodeCreationHandlerFactory.php index f590eed1ed..514c5333e2 100644 --- a/Classes/NodeCreationHandler/Factory/UriPathSegmentNodeCreationHandlerFactory.php +++ b/Classes/NodeCreationHandler/Factory/UriPathSegmentNodeCreationHandlerFactory.php @@ -23,7 +23,7 @@ * * - sets the "uriPathSegment" property according to the specified title or node name * - sets the "title" property according to the incoming title from a creation dialog - * - (actually obsolete with CreationDialogPropertiesCreationHandler) + * - (actually obsolete with PromotedElementsCreationHandler) * * @internal you should not to interact with this factory directly. The node creation handle will already be configured under `nodeCreationHandlers` * @implements ContentRepositoryServiceFactoryInterface @@ -55,7 +55,7 @@ public function handle(NodeCreationCommands $commands, NodeCreationElements $ele $propertyValues = $commands->first->initialPropertyValues; if ($elements->hasPropertyLike('title')) { - // technically we only need to set the uriPathSegment as the CreationDialogPropertiesCreationHandler + // technically we only need to set the uriPathSegment as the PromotedElementsCreationHandler // will take care of setting the title already $propertyValues = $propertyValues->withValue('title', $elements->getPropertyLike('title')); } diff --git a/Configuration/NodeTypes.yaml b/Configuration/NodeTypes.yaml index 9f04ff7a9e..0ea3eb2a3b 100644 --- a/Configuration/NodeTypes.yaml +++ b/Configuration/NodeTypes.yaml @@ -20,14 +20,14 @@ nodeCreationHandlers: uriPathSegment: factoryClassName: 'Neos\Neos\Ui\NodeCreationHandler\Factory\UriPathSegmentNodeCreationHandlerFactory' - creationDialogProperties: - factoryClassName: 'Neos\Neos\Ui\NodeCreationHandler\Factory\CreationDialogPropertiesCreationHandlerFactory' + promotedElements: + factoryClassName: 'Neos\Neos\Ui\NodeCreationHandler\Factory\PromotedElementsCreationHandlerFactory' 'Neos.Neos:Content': options: nodeCreationHandlers: - creationDialogProperties: - factoryClassName: 'Neos\Neos\Ui\NodeCreationHandler\Factory\CreationDialogPropertiesCreationHandlerFactory' + promotedElements: + factoryClassName: 'Neos\Neos\Ui\NodeCreationHandler\Factory\PromotedElementsCreationHandlerFactory' 'Neos.Neos:ContentCollection': ui: