Neos.ContentRepository/Classes/Domain/Model/NodeData.php
public function matchesWorkspaceAndDimensions($workspace, array $dimensions = null)
    {
        if ($this->workspace->getName() !== $workspace->getName()) {
            return false;
        }
        if ($dimensions !== null) {
            $nodeDimensionValues = $this->dimensionValues;
            foreach ($dimensions as $dimensionName => $dimensionValues) {
                if (isset($nodeDimensionValues[$dimensionName]) && $nodeDimensionValues[$dimensionName] !== [] && array_intersect($nodeDimensionValues[$dimensionName], $dimensionValues) === []) {
                    return false;
                }
            }
        }

        return true;
    }
public function matchesWorkspaceAndDimensions($workspace, array $dimensions = null)
    {
        if ($this->workspace->getName() !== $workspace->getName()) {
            return false;
        }
        if ($dimensions !== null) {
            $nodeDimensionValues = $this->dimensionValues;
            foreach ($dimensions as $dimensionName => $dimensionValues) {
                if (isset($nodeDimensionValues[$dimensionName]) && $nodeDimensionValues[$dimensionName] !== [] && array_intersect($nodeDimensionValues[$dimensionName], $dimensionValues) === []) {
                    return false;
                }
            }
        }

        return true;
    }
public function matchesWorkspaceAndDimensions ( $ workspace , array $ dimensions = null ) { if ( $ this -> workspace -> getName ( ) !== $ workspace -> getName ( ) ) { return false ; } if ( $ dimensions !== null ) { $ nodeDimensionValues = $ this -> dimensionValues ; foreach ( $ dimensions as $ dimensionName => $ dimensionValues ) { if ( isset ( $ nodeDimensionValues [ $ dimensionName ] ) && $ nodeDimensionValues [ $ dimensionName ] !== [ ] && array_intersect ( $ nodeDimensionValues [ $ dimensionName ] , $ dimensionValues ) === [ ] ) { return false ; } } } return true ; }
Checks if this instance matches the given workspace and dimensions.

@param Workspace $workspace
@param array $dimensions
@return boolean
Checks if this instance matches the given workspace and dimensions .