Craft Themes (3.x)

RegisterLayoutTypesEvent extends Event
in package

Event to register layout types

Tags
since
3.1.0

Table of Contents

$_types  : array<string|int, mixed>
List of registered types
getTypes()  : array<string|int, mixed>
types getter
init()  : mixed
register()  : mixed
Register a type class
registerMany()  : mixed
Register many types

Properties

Methods

getTypes()

types getter

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

register()

Register a type class

public register(string $name, string $class) : mixed
Parameters
$name : string
$class : string
Tags
throws
LayoutException
Return values
mixed

registerMany()

Register many types

public registerMany(array<string|int, mixed> $types) : mixed
Parameters
$types : array<string|int, mixed>
Return values
mixed

Search results