public function viewportsCommand($format = 'json', $packageKey = null)
    {
        $sitePackageKey = $packageKey ?: $this->getDefaultSitePackageKey();
        $viewportPresets = $this->configurationService->getSiteConfiguration($sitePackageKey, 'ui.viewportPresets');
        $this->outputData($viewportPresets, $format);
    }
public function viewportsCommand($format = 'json', $packageKey = null)
    {
        $sitePackageKey = $packageKey ?: $this->getDefaultSitePackageKey();
        $viewportPresets = $this->configurationService->getSiteConfiguration($sitePackageKey, 'ui.viewportPresets');
        $this->outputData($viewportPresets, $format);
    }
public function viewportsCommand ( $ format = 'json' , $ packageKey = null ) { $ sitePackageKey = $ packageKey ? : $ this -> getDefaultSitePackageKey ( ) ; $ viewportPresets = $ this -> configurationService -> getSiteConfiguration ( $ sitePackageKey , 'ui.viewportPresets' ) ; $ this -> outputData ( $ viewportPresets , $ format ) ; }
Get a list of all configured default styleguide viewports

@param string $format Result encoding ``yaml`` and ``json`` are supported
@param string $packageKey site-package (defaults to first found)
Get a list of all configured default styleguide viewports