public function SubFormState::setHasFileElement in Authorization 8
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
- src/
Form/ SubFormState.php, line 531
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function setHasFileElement($has_file_element = TRUE) {
$this->mainFormState
->setHasFileElement($has_file_element);
return $this;
}