getNodeVariantsByIdentifier() 공개 메소드

A variant of a node can have different dimension values and path (for non-aggregate nodes). The resulting node instances might belong to a different context.
public getNodeVariantsByIdentifier ( string $identifier ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface>
$identifier string The identifier of a node
리턴 array<\Neos\ContentRepository\Domain\Model\NodeInterface>
예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getOtherNodeVariants()
 {
     return array_filter($this->context->getNodeVariantsByIdentifier($this->getIdentifier()), function ($node) {
         return $node->getNodeData() !== $this->nodeData;
     });
 }