function views_merge_rows_uninstall in Views Merge Rows 8
Same name and namespace in other branches
- 8.2 views_merge_rows.install \views_merge_rows_uninstall()
Implements hook_uninstall().
File
- ./
views_merge_rows.install, line 21 - Module install file.
Code
function views_merge_rows_uninstall() {
$config = \Drupal::service('config.factory')
->getEditable('views.settings');
$display_extenders = $config
->get('display_extenders') ?: [];
$key = array_search('views_merge_rows', $display_extenders);
if ($key !== FALSE) {
unset($display_extenders[$key]);
$config
->set('display_extenders', $display_extenders);
$config
->save();
}
}