src/Gzero/Cms/Models/Content.php
public function getPath($languageCode)
    {
        $route = $this->routes()->newQuery()
            ->where('language_code', $languageCode)
            ->first();
        if (empty($route->path)) {
            throw new DomainException("There is no route in '$languageCode' language for content: $this->id");
        }
        return $route->path;
    }
public function getPath($languageCode)
    {
        $route = $this->routes()->newQuery()
            ->where('language_code', $languageCode)
            ->first();
        if (empty($route->path)) {
            throw new DomainException("There is no route in '$languageCode' language for content: $this->id");
        }
        return $route->path;
    }
public function getPath ( $ languageCode ) { $ route = $ this -> routes ( ) -> newQuery ( ) -> where ( 'language_code' , $ languageCode ) -> first ( ) ; if ( empty ( $ route -> path ) ) { throw new DomainException ( "There is no route in '$languageCode' language for content: $this->id" ) ; } return $ route -> path ; }
Get Content url in specified language.

@param string $languageCode Lang code

@throws DomainException

@return string
Get Content url in specified language .