You are here

public function PhoneNumberVerificationInterface::getPhoneVerificationByEntity in SMS Framework 8

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

Gets a phone number verification for an entity and phone number pair.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: An entity to get phone number verification.

string $phone_number: A phone number.

Return value

\Drupal\sms\Entity\PhoneNumberVerificationInterface|null The phone number verification for an entity and phone number pair.

1 method overrides PhoneNumberVerificationInterface::getPhoneVerificationByEntity()
PhoneNumberVerification::getPhoneVerificationByEntity in src/Provider/PhoneNumberVerification.php
Gets a phone number verification for an entity and phone number pair.

File

src/Provider/PhoneNumberVerificationInterface.php, line 83

Class

PhoneNumberVerificationInterface
Interface for phone number provider.

Namespace

Drupal\sms\Provider

Code

public function getPhoneVerificationByEntity(EntityInterface $entity, $phone_number);