You are here

public function PhoneNumberVerification::getPhoneNumberSettings in SMS Framework 8

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

Gets read only phone number settings config object for a bundle.

Parameters

string $entity_type_id: The entity type ID of the bundle.

string $bundle: An entity bundle.

Return value

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

Overrides PhoneNumberVerificationInterface::getPhoneNumberSettings

1 call to PhoneNumberVerification::getPhoneNumberSettings()
PhoneNumberVerification::getPhoneNumberSettingsForEntity in src/Provider/PhoneNumberVerification.php
Gets phone number settings for the bundle of an entity.

File

src/Provider/PhoneNumberVerification.php, line 81

Class

PhoneNumberVerification
Phone number verification provider.

Namespace

Drupal\sms\Provider

Code

public function getPhoneNumberSettings($entity_type_id, $bundle) {
  return $this->phoneNumberSettings
    ->load($entity_type_id . '.' . $bundle);
}