Craft Themes (3.x)

CpBlocksController extends Controller
in package

Controller for actions related to blocks

Table of Contents

EVENT_REGISTER_ASSET_BUNDLES  = 'register_asset_bundles'
$blockCache  : BlockCacheService
$blockProviders  : BlockProvidersService
$blocks  : BlockService
$displays  : DisplayService
$fieldDisplayers  : FieldDisplayerService
$fields  : FieldsService
$groups  : GroupsService
$layouts  : LayoutService
$registry  : ThemesRegistry
$viewModes  : ViewModeService
actionIndex()  : Response
Blocks index
init()  : mixed

Constants

EVENT_REGISTER_ASSET_BUNDLES

public mixed EVENT_REGISTER_ASSET_BUNDLES = 'register_asset_bundles'

Properties

$blockCache

protected BlockCacheService $blockCache

$blockProviders

protected BlockProvidersService $blockProviders

$fieldDisplayers

protected FieldDisplayerService $fieldDisplayers

Methods

actionIndex()

Blocks index

public actionIndex([string|null $themeName = null ][, int|null $layout = null ]) : Response
Parameters
$themeName : string|null = null
$layout : int|null = null
Return values
Response

init()

public init() : mixed
Tags
inheritDoc
Return values
mixed

Search results