You are here

public function MobileNumberUtil::isSmsEnabled in Mobile Number 2.0.x

Same name and namespace in other branches
  1. 8 src/MobileNumberUtil.php \Drupal\mobile_number\MobileNumberUtil::isSmsEnabled()

Checks if sms sending is enabled.

Return value

bool True or false.

Overrides MobileNumberUtilInterface::isSmsEnabled

1 call to MobileNumberUtil::isSmsEnabled()
MobileNumberUtil::isTfaEnabled in src/MobileNumberUtil.php
Checks if tfa is enabled.

File

src/MobileNumberUtil.php, line 379

Class

MobileNumberUtil
Turns a render array into a HTML string.

Namespace

Drupal\mobile_number

Code

public function isSmsEnabled() {
  return $this
    ->smsCallback() ? TRUE : FALSE;
}