You are here

public static function MultiKeyWrapper::enabled in Lockr 7.2

Same name and namespace in other branches
  1. 7.3 vendor/lockr/lockr/src/KeyWrapper/MultiKeyWrapper.php \Lockr\KeyWrapper\MultiKeyWrapper::enabled()

Return value

bool

Overrides KeyWrapperInterface::enabled

File

vendor/lockr/lockr-client/src/KeyWrapper/MultiKeyWrapper.php, line 17

Class

MultiKeyWrapper

Namespace

Lockr\KeyWrapper

Code

public static function enabled() {
  foreach (self::$wrappers as $wrapper) {
    if ($wrapper::enabled()) {
      return true;
    }
  }
  return false;
}