You are here

public function WebformAttachmentBase::hasValue in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_attachment/src/Plugin/WebformElement/WebformAttachmentBase.php \Drupal\webform_attachment\Plugin\WebformElement\WebformAttachmentBase::hasValue()

Determine if an element's has a submission value.

Parameters

array $element: An element.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

array $options: An array of options.

Return value

bool TRUE if them element's has a submission value.

Overrides WebformElementBase::hasValue

File

modules/webform_attachment/src/Plugin/WebformElement/WebformAttachmentBase.php, line 125

Class

WebformAttachmentBase
Provides a base class for 'webform_attachment' elements.

Namespace

Drupal\webform_attachment\Plugin\WebformElement

Code

public function hasValue(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
  return TRUE;
}