Craft Themes (3.x)

ViewModeOptions

Trait for displayer options that needs a view mode

Table of Contents

defineViewModeDefaultValues()  : array<string|int, mixed>
Define the default value for the viewModeUid option
defineViewModeOptions()  : array<string|int, mixed>
defineViewModeRules()  : array<string|int, mixed>
getViewMode()  : ViewModeInterface|null
Get the view mode
validateViewMode()  : mixed
Validate view mode

Methods

defineViewModeDefaultValues()

Define the default value for the viewModeUid option

public defineViewModeDefaultValues() : array<string|int, mixed>
Return values
array<string|int, mixed>

defineViewModeOptions()

public defineViewModeOptions() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

defineViewModeRules()

public defineViewModeRules() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

validateViewMode()

Validate view mode

public validateViewMode() : mixed
Return values
mixed

Search results