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
$blocks
protected
BlockService
$blocks
$displays
protected
DisplayService
$displays
$fieldDisplayers
protected
FieldDisplayerService
$fieldDisplayers
$fields
protected
FieldsService
$fields
$groups
protected
GroupsService
$groups
$layouts
protected
LayoutService
$layouts
$registry
protected
ThemesRegistry
$registry
$viewModes
protected
ViewModeService
$viewModes
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
Return values
mixed —beforeAction()
public
beforeAction(mixed $action) : mixed
Parameters
- $action : mixed
Tags
Return values
mixed —init()
public
init() : mixed