Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 10.3.x for all
  4. Search 11.x for all
  5. Other projects
Title Object type File name Summary
FormState::$no_redirect property core/lib/Drupal/Core/Form/FormState.php If set to TRUE the form will NOT perform a redirect, even if
self::$redirect is set.
FormState::$process_input property core/lib/Drupal/Core/Form/FormState.php TRUE signifies correct form submission. This is always TRUE for programmed
forms coming from \Drupal\Core\Form\FormBuilderInterface::submitForm() (see
'programmed' key), or if the form_id coming from the
\Drupal::request()->request data…
FormState::$programmed property core/lib/Drupal/Core/Form/FormState.php If TRUE, the form was submitted programmatically, usually invoked via
\Drupal\Core\Form\FormBuilderInterface::submitForm(). Defaults to FALSE.
FormState::$programmed_bypass_access_check property core/lib/Drupal/Core/Form/FormState.php If TRUE, programmatic form submissions are processed without taking #access
into account. Set this to FALSE when submitting a form programmatically
with values that may have been input by the user executing the current
request; this will cause #access…
FormState::$rebuild property core/lib/Drupal/Core/Form/FormState.php Normally, after the entire form processing is completed and submit handlers
have run, a form is considered to be done and
\Drupal\Core\Form\FormSubmitterInterface::redirectForm() will redirect the
user to a new page using a GET request (so a browser…
FormState::$rebuild_info property core/lib/Drupal/Core/Form/FormState.php Similar to self::$build_info, but pertaining to
\Drupal\Core\Form\FormBuilderInterface::rebuildForm().
FormState::$redirect property core/lib/Drupal/Core/Form/FormState.php Used to redirect the form on submission.
FormState::$requestMethod property core/lib/Drupal/Core/Form/FormState.php The HTTP method used by the request building or processing this form.
FormState::$response property core/lib/Drupal/Core/Form/FormState.php Used when a form needs to return some kind of a
\Symfony\Component\HttpFoundation\Response object, e.g., a
\Symfony\Component\HttpFoundation\BinaryFileResponse when triggering a
file download. If you use self::setRedirect() or…
FormState::$storage property core/lib/Drupal/Core/Form/FormState.php This is not a special key, and no specific support is provided for it in
the Form API. By tradition it was the location where application-specific
data was stored for communication between the submit, validation, and form
builder functions, especially…
FormState::$submitted property core/lib/Drupal/Core/Form/FormState.php If TRUE, the form has been submitted. Defaults to FALSE.
FormState::$submit_handlers property core/lib/Drupal/Core/Form/FormState.php Stores the gathered submission handlers.
FormState::$temporary property core/lib/Drupal/Core/Form/FormState.php Holds temporary data accessible during the current page request only.
FormState::$triggering_element property core/lib/Drupal/Core/Form/FormState.php The form element that triggered submission, which may or may not be a
button (in the case of Ajax forms). This key is often used to distinguish
between various buttons in a submit handler, and is also used in Ajax
handlers.
FormState::$validate_handlers property core/lib/Drupal/Core/Form/FormState.php Stores the gathered validation handlers.
FormState::$validation_complete property core/lib/Drupal/Core/Form/FormState.php Tracks if the form has finished validation.
FormState::$values property core/lib/Drupal/Core/Form/FormState.php An associative array of values submitted to the form.
FormState::addBuildInfo function core/lib/Drupal/Core/Form/FormState.php Adds a value to the build info.
FormState::addCleanValueKey function core/lib/Drupal/Core/Form/FormState.php Adds a key to the array of form values that will be cleaned.
FormState::addRebuildInfo function core/lib/Drupal/Core/Form/FormState.php Adds a value to the rebuild info.
FormState::cleanValues function core/lib/Drupal/Core/Form/FormState.php Removes internal Form API elements and buttons from submitted form values.
FormState::clearErrors function core/lib/Drupal/Core/Form/FormState.php Clears all errors against all form elements made by self::setErrorByName().
FormState::disableCache function core/lib/Drupal/Core/Form/FormState.php Prevents the form from being cached.
FormState::disableRedirect function core/lib/Drupal/Core/Form/FormState.php Prevents the form from redirecting.
FormState::get function core/lib/Drupal/Core/Form/FormState.php Gets any arbitrary property.
FormState::getAlwaysProcess function core/lib/Drupal/Core/Form/FormState.php Determines if this form should always be processed.
FormState::getBuildInfo function core/lib/Drupal/Core/Form/FormState.php Returns the build info for the form.
FormState::getButtons function core/lib/Drupal/Core/Form/FormState.php Returns the submit and button elements for the form.
FormState::getCacheableArray function core/lib/Drupal/Core/Form/FormState.php Returns an array representation of the cacheable portion of the form state.
FormState::getCleanValueKeys function core/lib/Drupal/Core/Form/FormState.php Gets the keys of the form values that will be cleaned.
FormState::getCompleteForm function core/lib/Drupal/Core/Form/FormState.php Returns a reference to the complete form array.
FormState::getError function core/lib/Drupal/Core/Form/FormState.php Returns the error message filed against the given form element.
FormState::getErrors function core/lib/Drupal/Core/Form/FormState.php Returns an associative array of all errors.
FormState::getFormObject function core/lib/Drupal/Core/Form/FormState.php Returns the form object that is responsible for building this form.
FormState::getGroups function core/lib/Drupal/Core/Form/FormState.php Returns references to details elements to render them within vertical tabs.
FormState::getLimitValidationErrors function core/lib/Drupal/Core/Form/FormState.php Retrieves the limited validation error sections.
FormState::getRebuildInfo function core/lib/Drupal/Core/Form/FormState.php Gets the rebuild info.
FormState::getRedirect function core/lib/Drupal/Core/Form/FormState.php Gets the value to use for redirecting after the form has been executed.
FormState::getResponse function core/lib/Drupal/Core/Form/FormState.php Gets a response for this form.
FormState::getStorage function core/lib/Drupal/Core/Form/FormState.php Returns the entire set of arbitrary data.
FormState::getSubmitHandlers function core/lib/Drupal/Core/Form/FormState.php Gets the submit handlers.
FormState::getTemporary function core/lib/Drupal/Core/Form/FormState.php Gets temporary data.
FormState::getTemporaryValue function core/lib/Drupal/Core/Form/FormState.php Gets an arbitrary value from temporary storage.
FormState::getTriggeringElement function core/lib/Drupal/Core/Form/FormState.php Gets the form element that triggered submission.
FormState::getUserInput function core/lib/Drupal/Core/Form/FormState.php Returns the form values as they were submitted by the user.
FormState::getValidateHandlers function core/lib/Drupal/Core/Form/FormState.php Gets the validate handlers.
FormState::getValues function core/lib/Drupal/Core/Form/FormState.php Implements \Drupal\Core\Form\FormStateInterface::getValues()
FormState::has function core/lib/Drupal/Core/Form/FormState.php Determines if an arbitrary property is present.
FormState::hasAnyErrors function core/lib/Drupal/Core/Form/FormState.php Determines if any forms have any errors.
FormState::hasFileElement function core/lib/Drupal/Core/Form/FormState.php Returns whether this form has a file element.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.