public function resolveViewName(string $name): ?string
    {
        if (!array_key_exists($name, $this->cache)) {
            $this->collection->sort();
            $view = $this->getRouter()->route(new Context($name));
            if (!is_string($view)) {
                $view = null;
            }
            $this->cache[$name] = $view;
        }
        return $this->cache[$name];
    }
public function resolveViewName(string $name): ?string
    {
        if (!array_key_exists($name, $this->cache)) {
            $this->collection->sort();
            $view = $this->getRouter()->route(new Context($name));
            if (!is_string($view)) {
                $view = null;
            }
            $this->cache[$name] = $view;
        }
        return $this->cache[$name];
    }
public function resolveViewName ( string $ name ) : ? string { if ( ! array_key_exists ( $ name , $ this -> cache ) ) { $ this -> collection -> sort ( ) ; $ view = $ this -> getRouter ( ) -> route ( new Context ( $ name ) ) ; if ( ! is_string ( $ view ) ) { $ view = null ; } $ this -> cache [ $ name ] = $ view ; } return $ this -> cache [ $ name ] ; }
Resolve a view's name

@param   string $name

@return  string|null
Resolve a view s name