Interface IMediaUrlGenerator
Used to generate paths to media items for a specified property editor alias
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public interface IMediaUrlGenerator
Methods
View SourceTryGetMediaPath(string?, object?, out string?)
Tries to get a media path for a given property editor alias
Declaration
bool TryGetMediaPath(string? propertyEditorAlias, object? value, out string? mediaPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyEditorAlias | The property editor alias |
| object | value | The value of the property |
| string | mediaPath | The media path |
Returns
| Type | Description |
|---|---|
| bool | True if a media path was returned |