stringoverrides.install in String Overrides 8
Same filename and directory in other branches
Install and uninstall.
File
stringoverrides.installView source
<?php
/**
* @file
* Install and uninstall.
*/
/**
* Implements hook_uninstall().
*/
function stringoverrides_uninstall() {
// Remove all stored string replacements.
$config_factory = \Drupal::service('config.factory');
$config_names = $config_factory
->listAll('stringoverrides.string_override.');
foreach ($config_names as $config_name) {
$config = $config_factory
->getEditable($config_name);
$config
->delete();
}
}
Functions
Name | Description |
---|---|
stringoverrides_uninstall | Implements hook_uninstall(). |