original_string: protected function getModelRouteNameSegment($routeName = null)
      {
          $routeName = $routeName ?: $this->getRouteName();
  
          $combinedPrefix = config('cms-core.route.name-prefix')
                          . config('cms-models.route.name-prefix')
                          . static::MODEL_ROUTE_NAME_PREFIX;
  
          if ( ! starts_with($routeName, $combinedPrefix)) {
              return false;
          }
  
          return substr($routeName, strlen($combinedPrefix));
      }
code: protected function getModelRouteNameSegment($routeName = null)
      {
          $routeName = $routeName ?: $this->getRouteName();
  
          $combinedPrefix = config('cms-core.route.name-prefix')
                          . config('cms-models.route.name-prefix')
                          . static::MODEL_ROUTE_NAME_PREFIX;
  
          if ( ! starts_with($routeName, $combinedPrefix)) {
              return false;
          }
  
          return substr($routeName, strlen($combinedPrefix));
      }
code_tokens: protected function getModelRouteNameSegment ( $ routeName = null ) { $ routeName = $ routeName ? : $ this -> getRouteName ( ) ; $ combinedPrefix = config ( 'cms-core.route.name-prefix' ) . config ( 'cms-models.route.name-prefix' ) . static :: MODEL_ROUTE_NAME_PREFIX ; if ( ! starts_with ( $ routeName , $ combinedPrefix ) ) { return false ; } return substr ( $ routeName , strlen ( $ combinedPrefix ) ) ; }
docstring: Returns the route name part that represents the model.
  
  @param string|null $routeName    if not set, uses current route
  @return false|string
docstring_tokens: Returns the route name part that represents the model .