protected function isNodeDataMatchingContext() { if ($this->nodeDataIsMatchingContext === null) { $workspacesMatch = $this->nodeData->getWorkspace() !== null && $this->context->getWorkspace() !== null && $this->nodeData->getWorkspace()->getName() === $this->context->getWorkspace()->getName(); $this->nodeDataIsMatchingContext = $workspacesMatch && $this->dimensionsAreMatchingTargetDimensionValues(); } return $this->nodeDataIsMatchingContext; }