Class DeliveryApiCompositeIdHandler
Default implementation of IDeliveryApiCompositeIdHandler that handles composite ID creation and decomposition.
Inheritance
object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class DeliveryApiCompositeIdHandler : IDeliveryApiCompositeIdHandler
Constructors
View SourceDeliveryApiCompositeIdHandler()
Declaration
public DeliveryApiCompositeIdHandler()
Methods
View SourceDecompose(string)
Decomposes a composite index ID into its component parts.
Declaration
public DeliveryApiIndexCompositeIdModel Decompose(string indexId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | indexId | The composite index ID to decompose. |
Returns
| Type | Description |
|---|---|
| DeliveryApiIndexCompositeIdModel | A DeliveryApiIndexCompositeIdModel containing the decomposed ID and culture. |
IndexId(int, string)
Creates a composite index ID from the specified content ID and culture.
Declaration
public string IndexId(int id, string culture)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The content ID. |
| string | culture | The culture code. |
Returns
| Type | Description |
|---|---|
| string | A composite index ID string. |