You are here

public function FormStateDecoratorBase::hasFileElement in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::hasFileElement()
  2. 9 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::hasFileElement()

Returns whether this form has a file element.

Return value

bool Whether this form has a file element.

Overrides FormStateInterface::hasFileElement

File

core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 130

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

public function hasFileElement() {
  return $this->decoratedFormState
    ->hasFileElement();
}