You are here

public function WebformSubmission::setLocked in Webform 8.5

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

Sets the submission's locked flag.

Parameters

bool $locked: The submission's locked flag.

Return value

$this

Overrides WebformSubmissionInterface::setLocked

File

src/Entity/WebformSubmission.php, line 352

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

public function setLocked($locked) {
  $this
    ->set('locked', $locked);
  return $this;
}