You are here

public function WebformSubmission::isSticky in Webform 8.5

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

Returns the submission sticky status.

Return value

bool TRUE if the submission is sticky.

Overrides WebformSubmissionInterface::isSticky

File

src/Entity/WebformSubmission.php, line 672

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

public function isSticky() {
  return (bool) $this
    ->get('sticky')->value;
}