Craft Themes (4.x)

RulesController 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()  : bool
init()  : void
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) : bool
Parameters
$action : mixed
Tags
inheritDoc
Return values
bool

init()

public init() : void
Tags
inheritDoc
Return values
void

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