You are here

public function Webform::hasManagedFile in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::hasManagedFile()

Determine if the webform's elements include a managed_file upload element.

Return value

bool TRUE if the webform's elements include a managed_file upload element.

Overrides WebformInterface::hasManagedFile

File

src/Entity/Webform.php, line 780

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function hasManagedFile() {
  $this
    ->initElements();
  return !empty($this->elementsManagedFiles) ? TRUE : FALSE;
}