You are here

function publishcontent_update_8002 in Publish Content 8

Import additional modules' configuration for existing sites.

File

./publishcontent.install, line 24
Contains publishcontent.install.

Code

function publishcontent_update_8002() {
  $config = \Drupal::configFactory()
    ->getEditable('publishcontent.settings');
  $config
    ->set('publish_text_value', 'Publish');
  $config
    ->set('unpublish_text_value', 'Unpublish');
  $config
    ->save(TRUE);
}