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