You are here

public function WebformSubmission::setSticky in Webform 8.5

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

Sets the submission's sticky flag.

Parameters

bool $sticky: The submission's stick flag.

Return value

$this

Overrides WebformSubmissionInterface::setSticky

File

src/Entity/WebformSubmission.php, line 344

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

public function setSticky($sticky) {
  $this
    ->set('sticky', $sticky);
  return $this;
}