You are here

public function PhoneNumberVerification::getPhoneNumber in SMS Framework 2.1.x

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

Gets the phone number for the phone number verification.

Return value

string The phone number for the phone number verification.

Overrides PhoneNumberVerificationInterface::getPhoneNumber

File

src/Entity/PhoneNumberVerification.php, line 68

Class

PhoneNumberVerification
Defines the phone number verification entity.

Namespace

Drupal\sms\Entity

Code

public function getPhoneNumber() {
  return $this
    ->get('phone')->value;
}