/** * Removes the key as service default. * * @param \Drupal\key\KeyInterface $key */ public function removeDefaultKey(KeyInterface $key) { $key->setServiceDefault(FALSE); }