Craft Themes (4.x)

CpController extends Controller
in package

Controller for various ajax actions

Table of Contents

$blockCache  : BlockCacheService
$blockProviders  : BlockProvidersService
$blocks  : BlockService
$displays  : DisplayService
$fieldDisplayers  : FieldDisplayerService
$fields  : FieldsService
$groups  : GroupsService
$layouts  : LayoutService
$registry  : ThemesRegistry
$viewModes  : ViewModeService
actionAssetsData()  : array<string|int, mixed>
Return assets data for an array of ids
actionCategoriesData()  : array<string|int, mixed>
Return categories data for an array of ids
actionEntriesData()  : array<string|int, mixed>
Return entries data for an array of ids
actionInstall()  : array<string|int, mixed>
(Re)install all layouts
actionUsersData()  : array<string|int, mixed>
Return users data for an array of ids
actionViewModes()  : array<string|int, mixed>
Get view modes for a theme and a layout
afterAction()  : mixed
beforeAction()  : bool
init()  : void

Properties

$blockCache

protected BlockCacheService $blockCache

$blockProviders

protected BlockProvidersService $blockProviders

$fieldDisplayers

protected FieldDisplayerService $fieldDisplayers

Methods

actionAssetsData()

Return assets data for an array of ids

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

actionCategoriesData()

Return categories data for an array of ids

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

actionEntriesData()

Return entries data for an array of ids

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

actionInstall()

(Re)install all layouts

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

actionUsersData()

Return users data for an array of ids

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

actionViewModes()

Get view modes for a theme and a layout

public actionViewModes() : array<string|int, mixed>
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) : bool
Parameters
$action : mixed
Tags
inheritDoc
Return values
bool

init()

public init() : void
Tags
inheritDoc
Return values
void

Search results