public function getAdditionalNodeMetadataAction(array $nodes)
    {
        $result = [];
        /** @var NodeInterface $node */
        foreach ($nodes as $node) {
            $otherNodeVariants = array_values(array_filter(array_map(function ($node) {
                return $this->getCurrentDimensionPresetIdentifiersForNode($node);
            }, $node->getOtherNodeVariants())));
            $result[$node->getContextPath()] = [
                'policy' => $this->nodePolicyService->getNodePolicyInformation($node),
                'dimensions' => $this->getCurrentDimensionPresetIdentifiersForNode($node),
                'otherNodeVariants' => $otherNodeVariants
            ];
        }

        $this->view->assign('value', $result);
    }
public function getAdditionalNodeMetadataAction(array $nodes)
    {
        $result = [];
        /** @var NodeInterface $node */
        foreach ($nodes as $node) {
            $otherNodeVariants = array_values(array_filter(array_map(function ($node) {
                return $this->getCurrentDimensionPresetIdentifiersForNode($node);
            }, $node->getOtherNodeVariants())));
            $result[$node->getContextPath()] = [
                'policy' => $this->nodePolicyService->getNodePolicyInformation($node),
                'dimensions' => $this->getCurrentDimensionPresetIdentifiersForNode($node),
                'otherNodeVariants' => $otherNodeVariants
            ];
        }

        $this->view->assign('value', $result);
    }
public function getAdditionalNodeMetadataAction ( array $ nodes ) { $ result = [ ] ; /** @var NodeInterface $node */ foreach ( $ nodes as $ node ) { $ otherNodeVariants = array_values ( array_filter ( array_map ( function ( $ node ) { return $ this -> getCurrentDimensionPresetIdentifiersForNode ( $ node ) ; } , $ node -> getOtherNodeVariants ( ) ) ) ) ; $ result [ $ node -> getContextPath ( ) ] = [ 'policy' => $ this -> nodePolicyService -> getNodePolicyInformation ( $ node ) , 'dimensions' => $ this -> getCurrentDimensionPresetIdentifiersForNode ( $ node ) , 'otherNodeVariants' => $ otherNodeVariants ] ; } $ this -> view -> assign ( 'value' , $ result ) ; }
Fetches all the node information that can be lazy-loaded

@param array<NodeInterface> $nodes
Fetches all the node information that can be lazy - loaded