/** * {@inheritdoc} */ public function deleteKeyValue(KeyInterface $key) { $name = $key->id(); $client = Lockr::key(); try { $client->delete($name); } catch (\Exception $e) { return FALSE; } return TRUE; }
/** * Removes the key as service default. * * @param \Drupal\key\KeyInterface $key */ public function removeDefaultKey(KeyInterface $key) { $key->setServiceDefault(FALSE); }