20 lines
681 B
C#
20 lines
681 B
C#
using Umbraco.Core.Configuration;
|
|
|
|
namespace Umbraco.ModelsBuilder.Embedded
|
|
{
|
|
/// <summary>
|
|
/// Provides extension methods for the <see cref="Configs"/> class.
|
|
/// </summary>
|
|
public static class ConfigsExtensions
|
|
{
|
|
/// <summary>
|
|
/// Gets the models builder configuration.
|
|
/// </summary>
|
|
/// <remarks>Getting the models builder configuration freezes its state,
|
|
/// and any attempt at modifying the configuration using the Setup method
|
|
/// will be ignored.</remarks>
|
|
public static IModelsBuilderConfig ModelsBuilder(this Configs configs)
|
|
=> configs.GetConfig<IModelsBuilderConfig>();
|
|
}
|
|
}
|