function data_policy_export_uninstall in Data Policy 8
Implements hook_uninstall().
File
- modules/
data_policy_export/ data_policy_export.install, line 98 - Install, update and uninstall functions for the data_policy_export module.
Code
function data_policy_export_uninstall() {
// When uninstalling this module, we would like to remove the field that
// was added when installing this module.
$config = \Drupal::configFactory()
->getEditable('views.view.data_policy_agreements');
$config
->clear('display.default.display_options.fields.views_bulk_operations_bulk_form')
->save(TRUE);
}