European Week of Regions and Cities

SessionsExposedFiltersForm extends FormBase

Sessions exposed filters form.

Tags
see
FormBase

Table of Contents

Properties

$currentRouteMatch  : CurrentRouteMatch
The current route match.
$cmsConector  : CMSConnector
CMS Conector.

Methods

__construct()  : mixed
Constructs SessionsExposedFiltersForm object.
buildForm()  : array<string|int, mixed>
Build the sessions 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

Methods

__construct()

Constructs SessionsExposedFiltersForm object.

public __construct(CMSConnector $cmsConector, CurrentRouteMatch $currentRouteMatch) : mixed
Parameters
$cmsConector : CMSConnector

CMS rest API connector.

$currentRouteMatch : CurrentRouteMatch

The current route match.

buildForm()

Build the sessions 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
SuppressWarnings

(PHPMD.UnusedFormalParameter)

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
SuppressWarnings

(PHPMD.UnusedFormalParameter)

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.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)


        
On this page

Search results