Craft Themes (3.x)

CpViewModesAjaxController extends Controller
in package

Controller for ajax actions related to view modes

Table of Contents

$blockCache  : BlockCacheService
$blockProviders  : BlockProvidersService
$blocks  : BlockService
$displays  : DisplayService
$fieldDisplayers  : FieldDisplayerService
$fields  : FieldsService
$groups  : GroupsService
$layouts  : LayoutService
$registry  : ThemesRegistry
$viewModes  : ViewModeService
actionGet()  : array<string|int, mixed>
Get view modes for a layout
actionGetDisplays()  : array<string|int, mixed>
Get displays for a view mode
actionSave()  : array<string|int, mixed>
Saves view modes
actionViewModes()  : array<string|int, mixed>
Get view modes for a theme and a layout
afterAction()  : mixed
beforeAction()  : mixed
init()  : mixed

Properties

$blockCache

protected BlockCacheService $blockCache

$blockProviders

protected BlockProvidersService $blockProviders

$fieldDisplayers

protected FieldDisplayerService $fieldDisplayers

Methods

actionGet()

Get view modes for a layout

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

actionGetDisplays()

Get displays for a view mode

public actionGetDisplays(string $uid) : array<string|int, mixed>
Parameters
$uid : string
Return values
array<string|int, mixed>

actionSave()

Saves view modes

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

actionViewModes()

Get view modes for a theme and a layout

public actionViewModes(string $theme, string $type[, string $uid = '' ]) : array<string|int, mixed>
Parameters
$theme : string
$type : string
$uid : string = ''
Return values
array<string|int, mixed>

afterAction()

public afterAction(mixed $action, mixed $result) : mixed
Parameters
$action : mixed
$result : mixed
Tags
inheritDoc
Return values
mixed

beforeAction()

public beforeAction(mixed $action) : mixed
Parameters
$action : mixed
Tags
inheritDoc
Return values
mixed

init()

public init() : mixed
Tags
inheritDoc
Return values
mixed

Search results