You are here

public function WebformCompositeBase::hasManagedFiles in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElement/WebformCompositeBase.php \Drupal\webform\Plugin\WebformElement\WebformCompositeBase::hasManagedFiles()

Determine if the element is or includes a managed_file upload element.

Parameters

array $element: An element.

Return value

bool TRUE if the element is or includes a managed_file upload element.

Overrides WebformElementBase::hasManagedFiles

1 call to WebformCompositeBase::hasManagedFiles()
WebformCompositeBase::postSave in src/Plugin/WebformElement/WebformCompositeBase.php
Acts on a saved webform submission element before the insert or update hook is invoked.

File

src/Plugin/WebformElement/WebformCompositeBase.php, line 101

Class

WebformCompositeBase
Provides a base for composite elements.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function hasManagedFiles(array $element) {
  return $this
    ->getManagedFiles($element) ? TRUE : FALSE;
}