public function PhoneNumberVerification::getCode in SMS Framework 2.x
Same name and namespace in other branches
- 8 src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::getCode()
- 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\EntityCode
public function getCode() {
return $this
->get('code')->value;
}