From 1b07d9ef14a57f33e3beee31b9c0c08e7ee7b08b Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:21:36 +0100 Subject: [PATCH] TASK: Remove dead code "getPolicyInformationAction" that did not exist in Neos 8 a wip neos 9 artefact --- .../Controller/BackendServiceController.php | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/Classes/Controller/BackendServiceController.php b/Classes/Controller/BackendServiceController.php index 8c4e26cc6a..e4669b003a 100644 --- a/Classes/Controller/BackendServiceController.php +++ b/Classes/Controller/BackendServiceController.php @@ -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 $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 *