From baf36addedcc2dc42defdaba5027ea5a3aa6103b Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sat, 17 Feb 2024 15:24:48 +0100 Subject: [PATCH] TASK: Rename `DocumentTitleNodeCreationHandler` --- ...tory.php => UriPathSegmentNodeCreationHandlerFactory.php} | 5 +++-- Configuration/NodeTypes.yaml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) rename Classes/NodeCreationHandler/Factory/{DocumentTitleNodeCreationHandlerFactory.php => UriPathSegmentNodeCreationHandlerFactory.php} (96%) diff --git a/Classes/NodeCreationHandler/Factory/DocumentTitleNodeCreationHandlerFactory.php b/Classes/NodeCreationHandler/Factory/UriPathSegmentNodeCreationHandlerFactory.php similarity index 96% rename from Classes/NodeCreationHandler/Factory/DocumentTitleNodeCreationHandlerFactory.php rename to Classes/NodeCreationHandler/Factory/UriPathSegmentNodeCreationHandlerFactory.php index 1b2e15eb57..f590eed1ed 100644 --- a/Classes/NodeCreationHandler/Factory/DocumentTitleNodeCreationHandlerFactory.php +++ b/Classes/NodeCreationHandler/Factory/UriPathSegmentNodeCreationHandlerFactory.php @@ -21,13 +21,14 @@ /** * Node creation handler that * - * - sets the "title" property according to the incoming title from a creation dialog * - 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) * * @internal you should not to interact with this factory directly. The node creation handle will already be configured under `nodeCreationHandlers` * @implements ContentRepositoryServiceFactoryInterface */ -final class DocumentTitleNodeCreationHandlerFactory implements ContentRepositoryServiceFactoryInterface +final class UriPathSegmentNodeCreationHandlerFactory implements ContentRepositoryServiceFactoryInterface { /** * @Flow\Inject diff --git a/Configuration/NodeTypes.yaml b/Configuration/NodeTypes.yaml index fc614ab4df..9f04ff7a9e 100644 --- a/Configuration/NodeTypes.yaml +++ b/Configuration/NodeTypes.yaml @@ -18,8 +18,8 @@ title: "ClientEval:node.properties.title" options: nodeCreationHandlers: - documentTitle: - factoryClassName: 'Neos\Neos\Ui\NodeCreationHandler\Factory\DocumentTitleNodeCreationHandlerFactory' + uriPathSegment: + factoryClassName: 'Neos\Neos\Ui\NodeCreationHandler\Factory\UriPathSegmentNodeCreationHandlerFactory' creationDialogProperties: factoryClassName: 'Neos\Neos\Ui\NodeCreationHandler\Factory\CreationDialogPropertiesCreationHandlerFactory'