Skip to content

Commit

Permalink
TASK: Remove dead code "getPolicyInformationAction" that did not exis…
Browse files Browse the repository at this point in the history
…t in Neos 8

a wip neos 9 artefact
  • Loading branch information
mhsdesign committed Nov 11, 2024
1 parent 57b9359 commit 1b07d9e
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions Classes/Controller/BackendServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,43 +609,6 @@ public function getAdditionalNodeMetadataAction(array $nodes): void
$this->view->assign('value', $result);
}

/**
* @throws \Neos\Flow\Mvc\Exception\NoSuchArgumentException
*/
public function initializeGetPolicyInformationAction(): void
{
$this->arguments->getArgument('nodes')->getPropertyMappingConfiguration()->allowAllProperties();
}

/**
* @phpstan-param list<NodeAddress> $nodes
*/
public function getPolicyInformationAction(array $nodes): void
{
$result = [];
foreach ($nodes as $nodeAddress) {
$contentRepository = $this->contentRepositoryRegistry->get($nodeAddress->contentRepositoryId);
$subgraph = $contentRepository->getContentSubgraph(
$nodeAddress->workspaceName,
$nodeAddress->dimensionSpacePoint,
);
$node = $subgraph->findNodeById($nodeAddress->aggregateId);
if (!is_null($node)) {
$result[$nodeAddress->toJson()] = [
// todo reimplement nodePolicyService
'policy' => [
'disallowedNodeTypes' => [],
'canRemove' => true,
'canEdit' => true,
'disallowedProperties' => []
]
];
}
}

$this->view->assign('value', $result);
}

/**
* Build and execute a flow query chain
*
Expand Down

0 comments on commit 1b07d9e

Please sign in to comment.