You are here

public function PhoneNumberVerificationInterface::getPhoneNumberSettingsForEntity in SMS Framework 8

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

Gets phone number settings for the bundle of an entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to get settings.

Return value

\Drupal\sms\Entity\PhoneNumberSettingsInterface|null A phone number settings entity, or NULL if it does not exist.

Throws

\Drupal\sms\Exception\PhoneNumberSettingsException Thrown if entity is not configured for phone numbers.

1 method overrides PhoneNumberVerificationInterface::getPhoneNumberSettingsForEntity()
PhoneNumberVerification::getPhoneNumberSettingsForEntity in src/Provider/PhoneNumberVerification.php
Gets phone number settings for the bundle of an entity.

File

src/Provider/PhoneNumberVerificationInterface.php, line 37

Class

PhoneNumberVerificationInterface
Interface for phone number provider.

Namespace

Drupal\sms\Provider

Code

public function getPhoneNumberSettingsForEntity(EntityInterface $entity);