Skip to content

Commit

Permalink
TASK: Unset postprocessors for abstract nodetypes too
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Oct 23, 2023
1 parent 4289980 commit f0d9b6f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Neos.Neos/Classes/Service/NodeTypeSchemaBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@ public function generateNodeTypeSchema()
}

foreach ($nodeTypes as $nodeTypeName => $nodeType) {
// Skip abstract nodetypes which might have been added by the Neos.UI `nodeTypeRoles` configuration
if ($nodeType->isAbstract() === false) {
$configuration = $nodeType->getFullConfiguration();
$schema['nodeTypes'][$nodeTypeName] = $configuration;
$schema['nodeTypes'][$nodeTypeName]['label'] = $nodeType->getLabel();

// Remove the postprocessors, as they are not needed in the UI
unset($schema['nodeTypes'][$nodeTypeName]['postprocessors']);
}

// Remove the postprocessors, as they are not needed in the UI
unset($schema['nodeTypes'][$nodeTypeName]['postprocessors']);

$subTypes = [];
foreach ($this->nodeTypeManager->getSubNodeTypes($nodeType->getName(), false) as $subNodeType) {
$subTypes[] = $subNodeType->getName();
Expand Down

0 comments on commit f0d9b6f

Please sign in to comment.