original_string: protected function getUriForContent( $contentId, $absolute = false )
      {
          /* @var $model \Grid\Core\Model\Uri\Model */
          $service    = $this->getServiceLocator();
          $model      = $service->get( 'Grid\Core\Model\Uri\Model' );
          $subdomain  = $this->getSiteInfo()->getSubdomainId();
          $uri        = $model->findDefaultByContentLocale(
              $contentId,
              $this->locale,
              $subdomain
          );
  
          if ( empty( $uri ) )
          {
              return $this->getFallbackUri( $contentId, $absolute );
          }
  
          $result = '/' . $uri->safeUri;
  
          if ( $absolute || $subdomain != $uri->subdomainId )
          {
              $result = $this->getSiteInfo()
                             ->getSubdomainUrl(
                                 $this->getSubdomain( $uri->subdomainId ),
                                 $result
                             );
          }
  
          return $result;
      }
code: protected function getUriForContent( $contentId, $absolute = false )
      {
          /* @var $model \Grid\Core\Model\Uri\Model */
          $service    = $this->getServiceLocator();
          $model      = $service->get( 'Grid\Core\Model\Uri\Model' );
          $subdomain  = $this->getSiteInfo()->getSubdomainId();
          $uri        = $model->findDefaultByContentLocale(
              $contentId,
              $this->locale,
              $subdomain
          );
  
          if ( empty( $uri ) )
          {
              return $this->getFallbackUri( $contentId, $absolute );
          }
  
          $result = '/' . $uri->safeUri;
  
          if ( $absolute || $subdomain != $uri->subdomainId )
          {
              $result = $this->getSiteInfo()
                             ->getSubdomainUrl(
                                 $this->getSubdomain( $uri->subdomainId ),
                                 $result
                             );
          }
  
          return $result;
      }
code_tokens: protected function getUriForContent ( $ contentId , $ absolute = false ) { /* @var $model \Grid\Core\Model\Uri\Model */ $ service = $ this -> getServiceLocator ( ) ; $ model = $ service -> get ( 'Grid\Core\Model\Uri\Model' ) ; $ subdomain = $ this -> getSiteInfo ( ) -> getSubdomainId ( ) ; $ uri = $ model -> findDefaultByContentLocale ( $ contentId , $ this -> locale , $ subdomain ) ; if ( empty ( $ uri ) ) { return $ this -> getFallbackUri ( $ contentId , $ absolute ) ; } $ result = '/' . $ uri -> safeUri ; if ( $ absolute || $ subdomain != $ uri -> subdomainId ) { $ result = $ this -> getSiteInfo ( ) -> getSubdomainUrl ( $ this -> getSubdomain ( $ uri -> subdomainId ) , $ result ) ; } return $ result ; }
docstring: Get uri for a content paragraph
  
  @param   int     $contentId
  @param   bool    $absolute
  @return  string
docstring_tokens: Get uri for a content paragraph