getNodeVariantsByIdentifier() public method

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
return array<\Neos\ContentRepository\Domain\Model\NodeInterface>
 /**
  * {@inheritdoc}
  */
 public function getOtherNodeVariants()
 {
     return array_filter($this->context->getNodeVariantsByIdentifier($this->getIdentifier()), function ($node) {
         return $node->getNodeData() !== $this->nodeData;
     });
 }