class ValidateCustomLess

Methods

__construct(Assets $assets, LocaleManager $locales, Container $container, SettingsRepositoryInterface $settings, array $customLessSettings = [])

No description

void
whenSettingsSaving(Saving $event)

No description

void
refuse(Saving $event, string $key, string $pattern)

Refuse a setting whose value uses a LESS feature it may not, so it is never persisted.

void
whenSettingsSaved(Saved $event)

No description

bool
hasDirtyCustomLessSettings(Saving $event)

No description

Details

__construct(Assets $assets, LocaleManager $locales, Container $container, SettingsRepositoryInterface $settings, array $customLessSettings = [])

Parameters

Assets $assets
LocaleManager $locales
Container $container
SettingsRepositoryInterface $settings
array $customLessSettings

void whenSettingsSaving(Saving $event)

Parameters

Saving $event

Return Value

void

protected void refuse(Saving $event, string $key, string $pattern)

Refuse a setting whose value uses a LESS feature it may not, so it is never persisted.

Parameters

Saving $event
string $key
string $pattern

Return Value

void

Exceptions

ValidationException

void whenSettingsSaved(Saved $event)

Parameters

Saved $event

Return Value

void

protected bool hasDirtyCustomLessSettings(Saving $event)

Parameters

Saving $event

Return Value

bool