SideEventsExposedFiltersForm
extends FormBase
in package
Sessions exposed filters form.
Tags
Table of Contents
Properties
- $currentRouteMatch : CurrentRouteMatch
- The current route match.
- $cmsConector : CMSConnector
- CMS Conector.
Methods
- __construct() : mixed
- Constructs SideEventsExposedFiltersForm object.
- buildForm() : array<string|int, mixed>
- Build the side events exposed filters form.
- create() : mixed
- {@inheritdoc}
- getFormId() : string
- Getter method for Form ID.
- submitForm() : mixed
- Implements a form submit handler.
- validateForm() : mixed
- Validate input on the exposed form.
Properties
$currentRouteMatch
The current route match.
protected
CurrentRouteMatch
$currentRouteMatch
$cmsConector
CMS Conector.
private
CMSConnector
$cmsConector
Methods
__construct()
Constructs SideEventsExposedFiltersForm object.
public
__construct(CMSConnector $cmsConector, CurrentRouteMatch $currentRouteMatch) : mixed
Parameters
- $cmsConector : CMSConnector
-
CMS rest API connector.
- $currentRouteMatch : CurrentRouteMatch
-
The current route match.
buildForm()
Build the side events exposed filters form.
public
buildForm(array<string|int, mixed> $form, FormStateInterface $form_state) : array<string|int, mixed>
Parameters
- $form : array<string|int, mixed>
-
Default form array structure.
- $form_state : FormStateInterface
-
Object containing current form state.
Tags
Return values
array<string|int, mixed> —The render array defining the elements of the form.
create()
{@inheritdoc}
public
static create(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
getFormId()
Getter method for Form ID.
public
getFormId() : string
Return values
string —The unique ID of the form defined by this class.
submitForm()
Implements a form submit handler.
public
submitForm(array<string|int, mixed> &$form, FormStateInterface $form_state) : mixed
Parameters
- $form : array<string|int, mixed>
-
The render array of the currently built form.
- $form_state : FormStateInterface
-
Object describing the current state of the form.
Tags
validateForm()
Validate input on the exposed form.
public
validateForm(array<string|int, mixed> &$form, FormStateInterface $form_state) : mixed
Parameters
- $form : array<string|int, mixed>
-
The render array of the currently built form.
- $form_state : FormStateInterface
-
Object describing the current state of the form.