Neos\ContentRepository\Domain\Model\NodeInterface::getDimensions PHP Method

getDimensions() public method

Return the assigned content dimensions of the node.
public getDimensions ( ) : array
return array An array of dimensions to array of dimension values
    public function getDimensions();

Usage Example

 /**
  * Returns the NodeData instance with the given identifier from the target workspace.
  * If no NodeData instance is found, null is returned.
  *
  * @param NodeInterface $node
  * @param Workspace $targetWorkspace
  * @return NodeData
  */
 protected function findNodeDataInTargetWorkspace(NodeInterface $node, Workspace $targetWorkspace)
 {
     $nodeData = $this->nodeDataRepository->findOneByIdentifier($node->getIdentifier(), $targetWorkspace, $node->getDimensions());
     return $nodeData === null || $nodeData->getWorkspace() === $targetWorkspace ? $nodeData : null;
 }
All Usage Examples Of Neos\ContentRepository\Domain\Model\NodeInterface::getDimensions