Skip to content

Commit

Permalink
chore: changes for neos 9 beta-11. See https://discuss.neos.io/t/neos…
Browse files Browse the repository at this point in the history
  • Loading branch information
samsauter committed Aug 19, 2024
1 parent 4344734 commit 03c5c11
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Configuration/NodeTypes.FormElement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
constraints:
nodeTypes:
'*': false
label: "${q(node).property('identifier') || q(node).property('label') || ((node.nodeType.label || node.nodeTypeName.value) + ' (' + node.name + ')')}"
label: "${q(node).property('identifier') || q(node).property('label') || ((Neos.Node.getNodeType(node).label || node.nodeTypeName.value) + ' (' + node.name + ')')}"
ui:
inlineEditable: true
label: 'Form Element'
Expand Down
2 changes: 1 addition & 1 deletion Configuration/NodeTypes.FormElements.Section.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
superTypes:
'Neos.Form.Builder:FormElement': true
'Neos.Form.Builder:SectionMixin': true
'Neos.Form.Builder:IdentifierMixin': false
'Neos.Form.Builder:IdentifierMixin': true
'Neos.Form.Builder:DefaultValueMixin': false
'Neos.Form.Builder:RequiredCheckboxMixin': false
ui:
Expand Down
2 changes: 1 addition & 1 deletion Configuration/NodeTypes.SelectOption.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
options:
nodeCreationHandlers:
documentTitle:
nodeCreationHandler: 'Neos\Form\Builder\NodeType\SelectOptionsCreationHandler'
factoryClassName: 'Neos\Form\Builder\NodeType\SelectOptionsCreationHandler'
fusion:
prototypeGenerator: null
properties:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Fusion/NodeBased/NodeBasedFinisher.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ prototype(Neos.Form.Builder:NodeBasedFinisherCollection) < prototype(Neos.Fusion
itemName = 'finisherNode'
itemRenderer = Neos.Fusion:Case {
formElementTypeFromNodeType {
condition = ${!finisherNode.nodeType.options.form.formElementType}
condition = ${!Neos.Node.getNodeType(finisherNode).options.form.formElementType}
renderer = Neos.Form.Builder:NodeBasedFinisher {
type = ${finisherNode.nodeTypeName.value + '.Definition'}
}
Expand All @@ -19,7 +19,7 @@ prototype(Neos.Form.Builder:NodeBasedFinisherCollection) < prototype(Neos.Fusion
condition = ${true}
renderer = Neos.Form.Builder:NodeBasedFinisher {
type = 'Neos.Form.Builder:Finisher.Definition'
element.formElementType = ${finisherNode.nodeType.options.form.formElementType}
element.formElementType = ${Neos.Node.getNodeType(finisherNode).options.form.formElementType}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ prototype(Neos.Form.Builder:NodeBasedElementCollection) < prototype(Neos.Fusion:
itemName = 'elementNode'
itemRenderer = Neos.Fusion:Case {
formElementTypeFromNodeType {
condition = ${!elementNode.nodeType.options.form.formElementType}
condition = ${!Neos.Node.getNodeType(elementNode).options.form.formElementType}
renderer = Neos.Form.Builder:NodeBasedFormElement {
type = ${elementNode.nodeTypeName.value + '.Definition'}
}
Expand All @@ -39,7 +39,7 @@ prototype(Neos.Form.Builder:NodeBasedElementCollection) < prototype(Neos.Fusion:
condition = ${true}
renderer = Neos.Form.Builder:NodeBasedFormElement {
type = 'Neos.Form.Builder:FormElement.Definition'
element.formElementType = ${elementNode.nodeType.options.form.formElementType}
element.formElementType = ${Neos.Node.getNodeType(elementNode).options.form.formElementType}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Fusion/NodeBased/NodeBasedFormPage.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ prototype(Neos.Form.Builder:NodeBasedPageCollection) < prototype(Neos.Fusion:Loo
itemName = 'pageNode'
itemRenderer = Neos.Fusion:Case {
formElementTypeFromNodeType {
condition = ${!pageNode.nodeType.options.form.formElementType}
condition = ${!Neos.Node.getNodeType(pageNode).options.form.formElementType}
renderer = Neos.Form.Builder:NodeBasedFormPage {
type = ${pageNode.nodeTypeName.value + '.Definition'}
}
Expand All @@ -26,7 +26,7 @@ prototype(Neos.Form.Builder:NodeBasedPageCollection) < prototype(Neos.Fusion:Loo
condition = ${true}
renderer = Neos.Form.Builder:NodeBasedFormPage {
type = 'Neos.Form.Builder:FormPage.Definition'
element.formElementType = ${pageNode.nodeType.options.form.formElementType}
element.formElementType = ${Neos.Node.getNodeType(pageNode).options.form.formElementType}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Fusion/NodeBased/NodeBasedValidator.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ prototype(Neos.Form.Builder:NodeBasedValidatorCollection) < prototype(Neos.Fusio
itemName = 'validatorNode'
itemRenderer = Neos.Fusion:Case {
formElementTypeFromNodeType {
condition = ${!validatorNode.nodeType.options.form.formElementType}
condition = ${!Neos.Node.getNodeType(validatorNode).options.form.formElementType}
renderer = Neos.Form.Builder:NodeBasedValidator {
type = ${validatorNode.nodeTypeName.value + '.Definition'}
}
Expand All @@ -19,7 +19,7 @@ prototype(Neos.Form.Builder:NodeBasedValidatorCollection) < prototype(Neos.Fusio
condition = ${true}
renderer = Neos.Form.Builder:NodeBasedValidator {
type = 'Neos.Form.Builder:Validator.Definition'
element.formElementType = ${validatorNode.nodeType.options.form.formElementType}
element.formElementType = ${Neos.Node.getNodeType(validatorNode).options.form.formElementType}
}
}
}
Expand Down

0 comments on commit 03c5c11

Please sign in to comment.