public function contentForRoute($route = null)
    {
        $content = $this->contentForInternalRoute($route);
        if ($content->internal === true) {
            $msg = t("The content '!ROUTE' does not exists as a public route.", ["!ROUTE" => $route]);
            throw new \Anax\Exception\NotFoundException($msg);
        }

        return $content;
    }
public function contentForRoute($route = null)
    {
        $content = $this->contentForInternalRoute($route);
        if ($content->internal === true) {
            $msg = t("The content '!ROUTE' does not exists as a public route.", ["!ROUTE" => $route]);
            throw new \Anax\Exception\NotFoundException($msg);
        }

        return $content;
    }
public function contentForRoute ( $ route = null ) { $ content = $ this -> contentForInternalRoute ( $ route ) ; if ( $ content -> internal === true ) { $ msg = t ( "The content '!ROUTE' does not exists as a public route." , [ "!ROUTE" => $ route ] ) ; throw new \ Anax \ Exception \ NotFoundException ( $ msg ) ; } return $ content ; }
Map url to content if such mapping can be done, exclude internal routes.

@param string $route optional route to look up.

@return object with content and filtered version.
Map url to content if such mapping can be done exclude internal routes .