You are here

public function PhoneNumberVerification::getStatus in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::getStatus()
  2. 2.1.x src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::getStatus()

Gets the status for the phone number verification.

Default value is FALSE (not verified).

Return value

bool Whether the phone number is verified.

Overrides PhoneNumberVerificationInterface::getStatus

File

src/Entity/PhoneNumberVerification.php, line 96

Class

PhoneNumberVerification
Defines the phone number verification entity.

Namespace

Drupal\sms\Entity

Code

public function getStatus() {
  return (bool) $this
    ->get('status')->value;
}