You are here

public function SecretInfo::getAllSecretInfo in Lockr 4.x

Same name and namespace in other branches
  1. 8.4 src/SecretInfo.php \Drupal\lockr\SecretInfo::getAllSecretInfo()
  2. 8.3 src/SecretInfo.php \Drupal\lockr\SecretInfo::getAllSecretInfo()

File

src/SecretInfo.php, line 92

Class

SecretInfo
SecretInfo implements secret info for Lockr secrets.

Namespace

Drupal\lockr

Code

public function getAllSecretInfo() {
  $info = [];
  foreach ($this->secretStorage
    ->loadMultiple(NULL) as $secret) {
    $info[$secret
      ->id()] = $secret
      ->getInfo();
  }
  return $info;
}