Neos.ContentRepository/Classes/Domain/Model/Node.php
public function findNamedReferencedNodes(PropertyName $edgeName): TraversableNodes
    {
        $referencedNodes = [];
        $propertyName = (string) $edgeName;
        $propertyType = $this->getNodeType()->getPropertyType($propertyName);
        if ($propertyType === 'reference' && $this->getProperty($propertyName) instanceof TraversableNodeInterface) {
            $referencedNodes = [$this->getProperty($propertyName)];
        } elseif ($propertyName === 'references' && !empty($this->getProperty($propertyName))) {
            $referencedNodes = $this->getProperty($propertyName);
        }

        return TraversableNodes::fromArray($referencedNodes);
    }
public function findNamedReferencedNodes(PropertyName $edgeName): TraversableNodes
    {
        $referencedNodes = [];
        $propertyName = (string) $edgeName;
        $propertyType = $this->getNodeType()->getPropertyType($propertyName);
        if ($propertyType === 'reference' && $this->getProperty($propertyName) instanceof TraversableNodeInterface) {
            $referencedNodes = [$this->getProperty($propertyName)];
        } elseif ($propertyName === 'references' && !empty($this->getProperty($propertyName))) {
            $referencedNodes = $this->getProperty($propertyName);
        }

        return TraversableNodes::fromArray($referencedNodes);
    }
public function findNamedReferencedNodes ( PropertyName $ edgeName ) : TraversableNodes { $ referencedNodes = [ ] ; $ propertyName = ( string ) $ edgeName ; $ propertyType = $ this -> getNodeType ( ) -> getPropertyType ( $ propertyName ) ; if ( $ propertyType === 'reference' && $ this -> getProperty ( $ propertyName ) instanceof TraversableNodeInterface ) { $ referencedNodes = [ $ this -> getProperty ( $ propertyName ) ] ; } elseif ( $ propertyName === 'references' && ! empty ( $ this -> getProperty ( $ propertyName ) ) ) { $ referencedNodes = $ this -> getProperty ( $ propertyName ) ; } return TraversableNodes :: fromArray ( $ referencedNodes ) ; }
Retrieves and returns nodes referenced by this node by name from its subgraph.

@param PropertyName $edgeName
@return TraversableNodes
@throws NodeException
@throws NodeTypeNotFoundException
@throws \Neos\Flow\Property\Exception
@throws \Neos\Flow\Security\Exception
Retrieves and returns nodes referenced by this node by name from its subgraph .