public function PhoneNumberVerification::getEntity in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::getEntity()
- 2.x src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::getEntity()
Gets the entity for the phone number verification.
Return value
\Drupal\Core\Entity\EntityInterface|null The entity for the phone number verification, or NULL if it is missing.
Overrides PhoneNumberVerificationInterface::getEntity
1 call to PhoneNumberVerification::getEntity()
- PhoneNumberVerification::preSave in src/
Entity/ PhoneNumberVerification.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ PhoneNumberVerification.php, line 53
Class
- PhoneNumberVerification
- Defines the phone number verification entity.
Namespace
Drupal\sms\EntityCode
public function getEntity() {
return $this
->get('entity')->entity;
}