public function MobileNumberUtil::setTfaField in Mobile Number 2.0.x
Same name and namespace in other branches
- 8 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_numberCode
public function setTfaField($field_name) {
$this->configFactory
->getEditable('mobile_number.settings')
->set('tfa_field', $field_name)
->save(TRUE);
}