protected function getCurrentDimensionPresetIdentifiersForNode($node)
    {
        $targetPresets = $this->contentDimensionsPresetSource->findPresetsByTargetValues($node->getDimensions());
        $presetCombo = [];
        foreach ($targetPresets as $dimensionName => $presetConfig) {
            $fullPresetConfig = $this->contentDimensionsPresetSource->findPresetByDimensionValues($dimensionName, $presetConfig['values']);
            $presetCombo[$dimensionName] = $fullPresetConfig['identifier'];
        }
        return $presetCombo;
    }
protected function getCurrentDimensionPresetIdentifiersForNode($node)
    {
        $targetPresets = $this->contentDimensionsPresetSource->findPresetsByTargetValues($node->getDimensions());
        $presetCombo = [];
        foreach ($targetPresets as $dimensionName => $presetConfig) {
            $fullPresetConfig = $this->contentDimensionsPresetSource->findPresetByDimensionValues($dimensionName, $presetConfig['values']);
            $presetCombo[$dimensionName] = $fullPresetConfig['identifier'];
        }
        return $presetCombo;
    }
protected function getCurrentDimensionPresetIdentifiersForNode ( $ node ) { $ targetPresets = $ this -> contentDimensionsPresetSource -> findPresetsByTargetValues ( $ node -> getDimensions ( ) ) ; $ presetCombo = [ ] ; foreach ( $ targetPresets as $ dimensionName => $ presetConfig ) { $ fullPresetConfig = $ this -> contentDimensionsPresetSource -> findPresetByDimensionValues ( $ dimensionName , $ presetConfig [ 'values' ] ) ; $ presetCombo [ $ dimensionName ] = $ fullPresetConfig [ 'identifier' ] ; } return $ presetCombo ; }
Gets an array of current preset identifiers for each dimension of the give node

@param NodeInterface $node
@return array
Gets an array of current preset identifiers for each dimension of the give node