SetPasswordFormBlock
extends Block
in package
Block displaying the set password form
Table of Contents
- $active : bool
- $dateCreated : DateTime
- $dateUpdated : DateTime
- $handle : string
- $id : int
- $layout_id : int
- $order : int
- $provider : string
- $region : string
- $uid : string
- $_cacheStrategy : CacheStrategyInterface
- $_cacheStrategyHandle : string
- $_cacheStrategyOptions : array<string|int, mixed>
- $_layout : LayoutInterface
- $_optionsModel : BlockOptions
- afterSave() : mixed
- Callback after the block has been saved
- beforeRender() : bool
- Callback before rendering, returning false will skip the block rendering.
- defineRules() : array<string|int, mixed>
- fields() : mixed
- getCacheStrategy() : BlockCacheStrategyInterface|null
- Get the cache strategy for this block
- getCanBeCached() : bool
- Can this block be cached
- getConfig() : array<string|int, mixed>
- Project config to be saved
- getErrors() : mixed
- getHandle() : string
- Get block handle
- getLayout() : LayoutInterface
- Get layout object
- getLongDescription() : string
- Long description getter
- getMachineName() : string
- Get full machine name, in the form provider-handle
- getName() : string
- getOptions() : BlockOptions
- Get options model
- getSmallDescription() : string
- getTemplates() : array<string|int, string>
- Get available templates
- hasErrors() : mixed
- init() : mixed
- isVisible() : bool
- Is this block visible
- provider() : BlockProviderInterface
- Get provider object
- render() : Markup
- Render this block
- setCacheStrategy() : mixed
- Set the cache strategy, $strategy should be an array : [ 'handle' => 'strategyHandle', 'options' => [] ]
- setLayout() : mixed
- Set layout object
- setOptions() : mixed
- Options setter
- toArray() : mixed
- getOptionsModel() : string
- Model class that defines this block's options
Properties
$active
public
bool
$active
= true
$dateCreated
public
DateTime
$dateCreated
$dateUpdated
public
DateTime
$dateUpdated
$handle
public
static string
$handle
= 'set-password'
$id
public
int
$id
$layout_id
public
int
$layout_id
$order
public
int
$order
= 0
$provider
public
string
$provider
$region
public
string
$region
$uid
public
string
$uid
$_cacheStrategy
protected
CacheStrategyInterface
$_cacheStrategy
$_cacheStrategyHandle
protected
string
$_cacheStrategyHandle
$_cacheStrategyOptions
protected
array<string|int, mixed>
$_cacheStrategyOptions
= []
$_layout
protected
LayoutInterface
$_layout
$_optionsModel
protected
BlockOptions
$_optionsModel
Methods
afterSave()
Callback after the block has been saved
public
afterSave() : mixed
Tags
Return values
mixed —beforeRender()
Callback before rendering, returning false will skip the block rendering.
public
beforeRender() : bool
Tags
Return values
bool —defineRules()
public
defineRules() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —fields()
public
fields() : mixed
Tags
Return values
mixed —getCacheStrategy()
Get the cache strategy for this block
public
getCacheStrategy() : BlockCacheStrategyInterface|null
Tags
Return values
BlockCacheStrategyInterface|null —getCanBeCached()
Can this block be cached
public
getCanBeCached() : bool
Tags
Return values
bool —getConfig()
Project config to be saved
public
getConfig() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getErrors()
public
getErrors([mixed $attribute = null ]) : mixed
Parameters
- $attribute : mixed = null
Tags
Return values
mixed —getHandle()
Get block handle
public
getHandle() : string
Tags
Return values
string —getLayout()
Get layout object
public
getLayout() : LayoutInterface
Tags
Return values
LayoutInterface —getLongDescription()
Long description getter
public
getLongDescription() : string
Tags
Return values
string —getMachineName()
Get full machine name, in the form provider-handle
public
getMachineName() : string
Tags
Return values
string —getName()
public
getName() : string
Tags
Return values
string —getOptions()
Get options model
public
getOptions() : BlockOptions
Tags
Return values
BlockOptions —getSmallDescription()
public
getSmallDescription() : string
Tags
Return values
string —getTemplates()
Get available templates
public
getTemplates(LayoutInterface $layout) : array<string|int, string>
Parameters
- $layout : LayoutInterface
Tags
Return values
array<string|int, string> —hasErrors()
public
hasErrors([mixed $attribute = null ]) : mixed
Parameters
- $attribute : mixed = null
Tags
Return values
mixed —init()
public
init() : mixed
Tags
Return values
mixed —isVisible()
Is this block visible
public
isVisible() : bool
Tags
Return values
bool —provider()
Get provider object
public
provider() : BlockProviderInterface
Tags
Return values
BlockProviderInterface —render()
Render this block
public
render() : Markup
Tags
Return values
Markup —setCacheStrategy()
Set the cache strategy, $strategy should be an array : [ 'handle' => 'strategyHandle', 'options' => [] ]
public
setCacheStrategy(mixed $strategy) : mixed
Parameters
- $strategy : mixed
Tags
Return values
mixed —setLayout()
Set layout object
public
setLayout(LayoutInterface $layout) : mixed
Parameters
- $layout : LayoutInterface
Tags
Return values
mixed —setOptions()
Options setter
public
setOptions(mixed $options) : mixed
Parameters
- $options : mixed
Tags
Return values
mixed —toArray()
public
toArray([array<string|int, mixed> $fields = [] ][, array<string|int, mixed> $expand = [] ][, mixed $recursive = true ]) : mixed
Parameters
- $fields : array<string|int, mixed> = []
- $expand : array<string|int, mixed> = []
- $recursive : mixed = true
Tags
Return values
mixed —getOptionsModel()
Model class that defines this block's options
protected
getOptionsModel() : string