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
$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
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
Return values
bool —init()
public
init() : void
Tags
Return values
void —parseSites()
Parse all sites and languages, returns an array [ [ 'uid' => 'Site name' ], [ 'en-GB' => 'English' ] ]
protected
parseSites() : array<string|int, mixed>