You are here

protected function AccountRegistration::settings in SMS Framework 8

Same name and namespace in other branches
  1. 2.x modules/sms_user/src/AccountRegistration.php \Drupal\sms_user\AccountRegistration::settings()
  2. 2.1.x modules/sms_user/src/AccountRegistration.php \Drupal\sms_user\AccountRegistration::settings()

Get the account_registration configuration.

Parameters

string $name: The configuration name.

Return value

array|null The values for the requested configuration.

3 calls to AccountRegistration::settings()
AccountRegistration::allUnknownNumbers in modules/sms_user/src/AccountRegistration.php
Process incoming message and create a user if the phone number is unknown.
AccountRegistration::createAccount in modules/sms_user/src/AccountRegistration.php
Process an incoming SMS to see if a new account should be created.
AccountRegistration::incomingPatternMessage in modules/sms_user/src/AccountRegistration.php
Creates a user if an incoming message contents matches a pattern.

File

modules/sms_user/src/AccountRegistration.php, line 386

Class

AccountRegistration
Defines the account registration service.

Namespace

Drupal\sms_user

Code

protected function settings($name) {
  return $this->configFactory
    ->get('sms_user.settings')
    ->get('account_registration.' . $name);
}