original_string: public function getRouteNameForModelClass($modelClass, $prefix = false)
      {
          $modelSlug = static::MODEL_ROUTE_NAME_PREFIX
                     . $this->getRouteSlugForModelClass($modelClass);
  
          if ( ! $prefix) {
              return $modelSlug;
          }
  
          return config('cms-core.route.name-prefix')
               . config('cms-models.route.name-prefix')
               . $modelSlug;
      }
code: public function getRouteNameForModelClass($modelClass, $prefix = false)
      {
          $modelSlug = static::MODEL_ROUTE_NAME_PREFIX
                     . $this->getRouteSlugForModelClass($modelClass);
  
          if ( ! $prefix) {
              return $modelSlug;
          }
  
          return config('cms-core.route.name-prefix')
               . config('cms-models.route.name-prefix')
               . $modelSlug;
      }
code_tokens: public function getRouteNameForModelClass ( $ modelClass , $ prefix = false ) { $ modelSlug = static :: MODEL_ROUTE_NAME_PREFIX . $ this -> getRouteSlugForModelClass ( $ modelClass ) ; if ( ! $ prefix ) { return $ modelSlug ; } return config ( 'cms-core.route.name-prefix' ) . config ( 'cms-models.route.name-prefix' ) . $ modelSlug ; }
docstring: Returns the route name for a given model FQN.
  
  @param string $modelClass
  @param bool   $prefix        whether to include CMS & model module prefixes
  @return string
docstring_tokens: Returns the route name for a given model FQN .