FormState::$has_file_element

Same name and namespace in other branches
  1. 9 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

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 342

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.