getEditable('system.theme.global')->set('features.node_user_picture', FALSE)->save(TRUE); // Allow visitor account creation, but with administrative approval. \Drupal::configFactory()->getEditable('user.settings')->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save(TRUE); }