src/Graviton/CoreBundle/Controller/MainController.php
private function isRelevantForMainPage($val)
    {
        return (substr($val['$ref'], -1) === '/')
            || in_array(parse_url($val['$ref'], PHP_URL_PATH), $this->pathWhitelist);
    }
private function isRelevantForMainPage($val)
    {
        return (substr($val['$ref'], -1) === '/')
            || in_array(parse_url($val['$ref'], PHP_URL_PATH), $this->pathWhitelist);
    }
private function isRelevantForMainPage ( $ val ) { return ( substr ( $ val [ '$ref' ] , - 1 ) === '/' ) || in_array ( parse_url ( $ val [ '$ref' ] , PHP_URL_PATH ) , $ this -> pathWhitelist ) ; }
tells if a service is relevant for the mainpage

@param array $val value of service spec

@return boolean
tells if a service is relevant for the mainpage