You are here

public function LockrAdmin::updateKeyringLabel in Lockr 7.3

Parameters

string $keyring_id:

string $label:

File

vendor/lockr/lockr/src/LockrAdmin.php, line 55

Class

LockrAdmin

Namespace

Lockr

Code

public function updateKeyringLabel($keyring_id, $label) {
  $query = <<<'EOQ'
mutation UpdateKeyring($input: UpdateKeyringLabel!) {
    updateKeyringLabel(input: $input) {
        id
    }
}
EOQ;
  $this->client
    ->query([
    'query' => $query,
    'variables' => [
      'input' => [
        'keyringId' => $keyring_id,
        'label' => $label,
      ],
    ],
  ]);
}