// Load the configuration factory service. $configFactory = \Drupal::service('config.factory'); // Load the system.site configuration. $siteConfig = $configFactory->getEditable('system.site'); // Update the site name. $siteConfig->set('name', 'My New Site Name')->save();This example shows how to load and modify a configuration file using the Drupal Config API. The `config.factory` service is used to access the system.site configuration file and make changes to the 'name' setting. Package Library: This is part of the Drupal Core package library.