You are here

public function WebformProtectedDownloads::isOneTimeLink in Webform Protected Downloads 8

Check if link is only one time usable.

Return value

bool Return bool.

File

src/Entity/WebformProtectedDownloads.php, line 65

Class

WebformProtectedDownloads
Defines the Webform protected downloads entity.

Namespace

Drupal\webform_protected_downloads\Entity

Code

public function isOneTimeLink() {
  return (bool) $this->onetime->value;
}