You are here

function focal_point_update_8003 in Focal Point 8

Install preview config.

File

./focal_point.install, line 90
Install hooks for focal_point.

Code

function focal_point_update_8003() {

  // Get all current configs for Focal Point.
  $existing_config = \Drupal::configFactory()
    ->getEditable('focal_point.settings');

  // Install the new configuration.
  \Drupal::service('config.installer')
    ->installDefaultConfig('module', 'focal_point');

  // Reset the existing configs in case they were changed when installing the
  // new configuration.
  $existing_config
    ->save();
}