You are here

public function Webform::hasAttachments in Webform 8.5

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

Determine if the webform's elements include attachments.

Return value

bool TRUE if the webform's elements include attachments.

Overrides WebformInterface::hasAttachments

File

src/Entity/Webform.php, line 788

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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