Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / fixtures / drupal8 / modules / behat_test / behat_test.install
1 <?php
2
3 /**
4  * Implements hook_install()
5  */
6 function behat_test_install() {
7   $storage = \Drupal::service('behat_test.config.storage.install');
8
9   // Override Standard profile's user settings with our own.
10   $config_names = array(
11     'core.entity_form_mode.user.register',
12     'core.entity_form_display.user.user.default',
13     'core.entity_view_display.user.user.default',
14     'core.entity_view_display.user.user.compact',
15     'core.entity_view_mode.user.compact',
16     'core.entity_view_mode.user.full',
17   );
18
19   foreach ($config_names as $config_name) {
20     $data = $storage->read($config_name);
21     \Drupal::configFactory()->getEditable($config_name)->setData($data)->save();
22   }
23 }