cypress-8.x-1.x-dev/cypress.install
cypress.install
<?php
/**
* Implements hook_uninstall().
*
* @return void
*/
function cypress_uninstall() {
// Remove the config keys set in GraphQLConfigOverrides::loadOverrides().
/** @var \Drupal\Core\Config\ConfigFactoryInterface $configFactory */
$configFactory = \Drupal::getContainer()->get('config.factory');
$languageTypes = $configFactory->getEditable('language.types');
$negotiation = $languageTypes->get('negotiation');
foreach (array_keys($negotiation) as $type) {
unset($negotiation[$type]['enabled']['language-cypress']);
}
$languageTypes->set('negotiation', $negotiation)->save();
}
