public function PhoneNumberVerification::getCode in SMS Framework 8
Same name and namespace in other branches
- 2.x 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 81
Class
- PhoneNumberVerification
- Defines the phone number verification entity.
Namespace
Drupal\sms\EntityCode
public function getCode() {
return $this
->get('code')->value;
}