You are here

public function WebformSubmission::isLocked in Webform 8.5

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

Get the submission's locked status.

Return value

string The submission's lock status.

Overrides WebformSubmissionInterface::isLocked

1 call to WebformSubmission::isLocked()
WebformSubmission::getState in src/Entity/WebformSubmission.php
Track the state of a submission.

File

src/Entity/WebformSubmission.php, line 665

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

public function isLocked() {
  return $this
    ->get('locked')->value ? TRUE : FALSE;
}