You are here

function fillpdf_update_8109 in FillPDF 5.0.x

Same name and namespace in other branches
  1. 8.4 fillpdf.install \fillpdf_update_8109()

Adds the 'shell_locale' config setting.

File

./fillpdf.install, line 192
Install functions for FillPDF.

Code

function fillpdf_update_8109() {
  $settings = \Drupal::configFactory()
    ->getEditable('fillpdf.settings');
  if ($settings
    ->get('shell_locale') === NULL) {
    $settings
      ->set('shell_locale', 'en_US.utf8')
      ->save();
  }
}