You are here

public function MobileNumberUtil::setTfaField in Mobile Number 8

Same name and namespace in other branches
  1. 2.0.x src/MobileNumberUtil.php \Drupal\mobile_number\MobileNumberUtil::setTfaField()

Sets the tfa field configuration.

Parameters

string $field_name: User field name.

Overrides MobileNumberUtilInterface::setTfaField

File

src/MobileNumberUtil.php, line 413

Class

MobileNumberUtil
Turns a render array into a HTML string.

Namespace

Drupal\mobile_number

Code

public function setTfaField($field_name) {
  $this->configFactory
    ->getEditable('mobile_number.settings')
    ->set('tfa_field', $field_name)
    ->save(TRUE);
}