You are here

public function PhoneNumberVerification::getCode in SMS Framework 2.x

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

Gets the code for the phone number verification.

Return value

string The code for the phone number verification.

Overrides PhoneNumberVerificationInterface::getCode

File

src/Entity/PhoneNumberVerification.php, line 83

Class

PhoneNumberVerification
Defines the phone number verification entity.

Namespace

Drupal\sms\Entity

Code

public function getCode() {
  return $this
    ->get('code')->value;
}