You are here

public function PhoneNumberProviderInterface::getPhoneNumbers in SMS Framework 8

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

Gets phone numbers for an entity.

Parameters

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

bool|null $verified: Whether the returned phone numbers must be verified, or NULL to get all phone numbers regardless of status.

Return value

string[] An array of phone numbers.

1 method overrides PhoneNumberProviderInterface::getPhoneNumbers()
PhoneNumberProvider::getPhoneNumbers in src/Provider/PhoneNumberProvider.php
Gets phone numbers for an entity.

File

src/Provider/PhoneNumberProviderInterface.php, line 25

Class

PhoneNumberProviderInterface
Interface for phone number provider.

Namespace

Drupal\sms\Provider

Code

public function getPhoneNumbers(EntityInterface $entity, $verified = TRUE);