src/Drupal/functions form.php

Functions

drupal_build_form()

drupal_build_form(string  $form_id, array  $form_state) : array

Parameters

string $form_id
array $form_state

Returns

array —

drupal_form_submit()

drupal_form_submit(string  $form_id, \Drupal\Core\Form\FormStateInterface  $form_state) : void

Parameters

string $form_id
\Drupal\Core\Form\FormStateInterface $form_state

Returns

void —

drupal_get_form()

drupal_get_form(string  $form_id, mixed  ...$args) : array

Parameters

string $form_id
mixed $args variadic

Returns

array —

form_error()

form_error(array  $element, string  $message = '') : void

Parameters

array $element
string $message

Returns

void —

form_load_include()

form_load_include(\Drupal\Core\Form\FormStateInterface  $form_state, string  $type, string  $module, ?string  $name = null) : string|false

Parameters

\Drupal\Core\Form\FormStateInterface $form_state
string $type
string $module
?string $name

Returns

string|false —

form_set_error()

form_set_error(?string  $name = null, string  $message = '', ?string[]  $limit_validation_errors = null) : array

Parameters

?string $name
string $message
?string[] $limit_validation_errors

Returns

array —

form_set_value()

form_set_value(array  $element, mixed  $value, \Drupal\Core\Form\FormStateInterface  $form_state) : void

Parameters

array $element
mixed $value
\Drupal\Core\Form\FormStateInterface $form_state

Returns

void —

form_state_values_clean()

form_state_values_clean(\Drupal\Core\Form\FormStateInterface  $form_state) : void

Parameters

\Drupal\Core\Form\FormStateInterface $form_state

Returns

void —

form_get_errors()

form_get_errors() : mixed

Returns

mixed —

theme_form_required_marker()

theme_form_required_marker(array  $variables) : string

Parameters

array $variables

Returns

string —