Skip to content

Commit

Permalink
TASK: Rename CreationDialogPropertiesCreationHandler
Browse files Browse the repository at this point in the history
to `PromotedElementsCreationHandler`.
In the future it will also handle references.
  • Loading branch information
mhsdesign committed Feb 17, 2024
1 parent baf36ad commit c0f57b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<NodeCreationHandlerInterface>
*/
final class CreationDialogPropertiesCreationHandlerFactory implements ContentRepositoryServiceFactoryInterface
final class PromotedElementsCreationHandlerFactory implements ContentRepositoryServiceFactoryInterface
{
public function build(ContentRepositoryServiceFactoryDependencies $serviceFactoryDependencies): NodeCreationHandlerInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<NodeCreationHandlerInterface>
Expand Down Expand Up @@ -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'));
}
Expand Down
8 changes: 4 additions & 4 deletions Configuration/NodeTypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c0f57b1

Please sign in to comment.