You are here

public function PhoneNumberVerificationInterface::getPhoneVerificationByCode in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Provider/PhoneNumberVerificationInterface.php \Drupal\sms\Provider\PhoneNumberVerificationInterface::getPhoneVerificationByCode()
  2. 2.1.x src/Provider/PhoneNumberVerificationInterface.php \Drupal\sms\Provider\PhoneNumberVerificationInterface::getPhoneVerificationByCode()

Checks if there is a phone number verification for a code.

Parameters

string $code: A string to check is a verification code.

Return value

\Drupal\sms\Entity\PhoneNumberVerificationInterface|false A phone number verification entity, or FALSE if $code is not a valid verification code.

1 method overrides PhoneNumberVerificationInterface::getPhoneVerificationByCode()
PhoneNumberVerification::getPhoneVerificationByCode in src/Provider/PhoneNumberVerification.php
Checks if there is a phone number verification for a code.

File

src/Provider/PhoneNumberVerificationInterface.php, line 49

Class

PhoneNumberVerificationInterface
Interface for phone number provider.

Namespace

Drupal\sms\Provider

Code

public function getPhoneVerificationByCode($code);