Craft Themes (3.x)

CpRulesController extends Controller
in package

Controller for actions related to rules

Table of Contents

$blockCache  : BlockCacheService
$blockProviders  : BlockProvidersService
$blocks  : BlockService
$displays  : DisplayService
$fieldDisplayers  : FieldDisplayerService
$fields  : FieldsService
$groups  : GroupsService
$layouts  : LayoutService
$registry  : ThemesRegistry
$viewModes  : ViewModeService
actionIndex()  : Response
Rules index
actionSave()  : Response
Save rules
beforeAction()  : mixed
init()  : mixed
parseSites()  : array<string|int, mixed>
Parse all sites and languages, returns an array [ [ 'uid' => 'Site name' ], [ 'en-GB' => 'English' ] ]

Properties

$blockCache

protected BlockCacheService $blockCache

$blockProviders

protected BlockProvidersService $blockProviders

$fieldDisplayers

protected FieldDisplayerService $fieldDisplayers

Methods

actionIndex()

Rules index

public actionIndex() : Response
Return values
Response

actionSave()

Save rules

public actionSave() : Response
Return values
Response

beforeAction()

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

init()

public init() : mixed
Tags
inheritDoc
Return values
mixed

parseSites()

Parse all sites and languages, returns an array [ [ 'uid' => 'Site name' ], [ 'en-GB' => 'English' ] ]

protected parseSites() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results