public function routeAliases($var = null)
    {
        if ($var !== null) {
            $this->routes['aliases'] = (array)$var;
        }

        if (!empty($this->routes) && isset($this->routes['aliases'])) {
            return $this->routes['aliases'];
        }

        return [];
    }
public function routeAliases($var = null)
    {
        if ($var !== null) {
            $this->routes['aliases'] = (array)$var;
        }

        if (!empty($this->routes) && isset($this->routes['aliases'])) {
            return $this->routes['aliases'];
        }

        return [];
    }
public function routeAliases ( $ var = null ) { if ( $ var !== null ) { $ this -> routes [ 'aliases' ] = ( array ) $ var ; } if ( ! empty ( $ this -> routes ) && isset ( $ this -> routes [ 'aliases' ] ) ) { return $ this -> routes [ 'aliases' ] ; } return [ ] ; }
Gets the route aliases for the page based on page headers.

@param  array $var list of route aliases

@return array  The route aliases for the Page.
Gets the route aliases for the page based on page headers .