FormState::$has_file_element

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::has_file_element
  2. 10 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::has_file_element
  3. 11.x core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::has_file_element

Indicates a file element is present.

If TRUE, there is a file element and Form API will set the appropriate 'enctype' HTML attribute on the form.

Type: bool

File

core/lib/Drupal/Core/Form/FormState.php, line 365

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected $has_file_element;

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