extends |
FormBuildEvent |
|---|---|
implements |
StoppableEventInterface |
uses |
StoppableEventTrait |
An event used to build the login form.
This class is derived from SimpleID\Util\Forms\FormBuildEvent
, which uses SimpleID\Util\UI\UIBuilder
to build the form. This event uses
a region key in the $additional array in the addBlock() method
to associate each block with a region. Blocks in each region are sorted
and displayed independently of each other.
The regions defined by this class, and their function, can be found in the documentation of the constants below.
| Methods | ||
|---|---|---|
public
|
addBlock(string $id, string $content, int $weight = 0, array $additional = []): UIBuildEvent
|
# |
public
|
showUIDBlock(array<string> $uid_autocomplete = []): UIBuildEvent
|
# |
public
|
getBlocks(): array<array<mixed>>
|
# |
public
|
getBlocksGroupedByRegion(): array<string, array<mixed>>
|
# |
public
|
getUIDAutocompleteValues(): array<string>
|
# |
| Methods inherited from SimpleID\Util\Forms\FormBuildEvent |
|---|
__construct(), getFormState() |
| Methods inherited from SimpleID\Util\Events\UIBuildEvent |
|---|
getUIBuilder(), merge(), getBlockData(), addAttachment(), getAttachments(), getAttachmentTypes(), getAttachmentsByType(), reset() |
| Methods used from SimpleID\Util\Events\GenericEventTrait |
|---|
setEventName(), getEventName() |
| Methods used from SimpleID\Util\Events\StoppableEventTrait |
|---|
isPropagationStopped(), stopPropagation() |
| Constants | |||
|---|---|---|---|
public
|
IDENTITY_REGION = 'identity'
|
# | |
public
|
PASSWORD_REGION = 'password'
|
# | |
public
|
DEFAULT_REGION = 'default'
|
# | |
public
|
OPTIONS_REGION = 'options'
|
# | |
public
|
SECONDARY_REGION = 'secondary'
|
# | |
| Constants inherited from SimpleID\Util\UI\AttachmentManagerInterface |
|---|
|
| Properties | |||
|---|---|---|---|
protected
|
bool
|
$hasUIDBlock = false
|
# |
protected
|
bool
|
$UIDBlockRendered = false
|
# |
protected
|
array<string>
|
$UIDAutocompleteValues = []
|
# |
| Properties inherited from SimpleID\Util\Forms\FormBuildEvent |
|---|
$form_state |
| Properties inherited from SimpleID\Util\Events\UIBuildEvent |
|---|
$builder |
| Properties used from SimpleID\Util\Events\GenericEventTrait |
|---|
$eventName |
| Properties used from SimpleID\Util\Events\StoppableEventTrait |
|---|
$stopped |