protected function getModelSlugForRouteNameSegment($nameSegment)
    {
        $dotPosition = strpos($nameSegment, '.');

        if (false === $dotPosition) {
            return $nameSegment;
        }

        return substr($nameSegment, 0, $dotPosition);
    }
protected function getModelSlugForRouteNameSegment($nameSegment)
    {
        $dotPosition = strpos($nameSegment, '.');

        if (false === $dotPosition) {
            return $nameSegment;
        }

        return substr($nameSegment, 0, $dotPosition);
    }
protected function getModelSlugForRouteNameSegment ( $ nameSegment ) { $ dotPosition = strpos ( $ nameSegment , '.' ) ; if ( false === $ dotPosition ) { return $ nameSegment ; } return substr ( $ nameSegment , 0 , $ dotPosition ) ; }
Returns the model slug for a model route name segment.

@param string $nameSegment
@return string
Returns the model slug for a model route name segment .