Class DefaultUrlSegmentProvider
Default implementation of IUrlSegmentProvider.
Inheritance
System.Object
      Namespace: Umbraco.Cms.Core.Strings
Assembly: Umbraco.Core.dll
Syntax
public class DefaultUrlSegmentProvider : IUrlSegmentProviderConstructors
View SourceDefaultUrlSegmentProvider(IShortStringHelper)
Declaration
public DefaultUrlSegmentProvider(IShortStringHelper shortStringHelper)Parameters
| Type | Name | Description | 
|---|---|---|
| IShortStringHelper | shortStringHelper | 
Methods
View SourceGetUrlSegment(IContentBase, String)
Gets the URL segment for a specified content and culture.
Declaration
public string GetUrlSegment(IContentBase content, string culture = null)Parameters
| Type | Name | Description | 
|---|---|---|
| IContentBase | content | The content. | 
| System.String | culture | The culture. | 
Returns
| Type | Description | 
|---|---|
| System.String | The URL segment. |