Drupal investigation

minimal.install 629B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the minimal installation profile.
  5. */
  6. /**
  7. * Implements hook_install().
  8. *
  9. * Performs actions to set up the site for this profile.
  10. *
  11. * @see system_install()
  12. */
  13. function minimal_install() {
  14. // Disable the user pictures on nodes.
  15. \Drupal::configFactory()->getEditable('system.theme.global')->set('features.node_user_picture', FALSE)->save(TRUE);
  16. // Allow visitor account creation, but with administrative approval.
  17. \Drupal::configFactory()->getEditable('user.settings')->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save(TRUE);
  18. }