function 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();
}

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