public function FormState::setHasFileElement in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setHasFileElement()
Sets that this form has a file element.
Parameters
bool $has_file_element: Whether this form has a file element.
Return value
$this
Overrides FormStateInterface::setHasFileElement
File
- core/
lib/ Drupal/ Core/ Form/ FormState.php, line 562 - Contains \Drupal\Core\Form\FormState.
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function setHasFileElement($has_file_element = TRUE) {
$this->has_file_element = (bool) $has_file_element;
return $this;
}