public function WebformSubmission::setLocked in Webform 8.5
Same name and namespace in other branches
- 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\EntityCode
public function setLocked($locked) {
$this
->set('locked', $locked);
return $this;
}