comparison core/modules/comment/comment.post_update.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
34 $entity_type_manager 34 $entity_type_manager
35 ->getStorage('view') 35 ->getStorage('view')
36 ->create($storage->read('views.view.comment')) 36 ->create($storage->read('views.view.comment'))
37 ->save(); 37 ->save();
38 } 38 }
39
40 /**
41 * Add comment settings.
42 */
43 function comment_post_update_add_ip_address_setting() {
44 $config_factory = \Drupal::configFactory();
45 $settings = $config_factory->getEditable('comment.settings');
46 $settings->set('log_ip_addresses', TRUE)
47 ->save(TRUE);
48 }