You are here

public function WebformHeight::hasValue in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/WebformHeight.php \Drupal\webform\Plugin\WebformElement\WebformHeight::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

src/Plugin/WebformElement/WebformHeight.php, line 87

Class

WebformHeight
Provides a 'height' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function hasValue(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
  $value = $this
    ->getValue($element, $webform_submission, $options);
  return $value === '0' ? FALSE : parent::hasValue($element, $webform_submission, $options);
}