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