You are here

function share_everywhere_update_8003 in Share Everywhere 8

Same name and namespace in other branches
  1. 2.x share_everywhere.install \share_everywhere_update_8003()

Add copy URL button configuration.

File

./share_everywhere.install, line 47
Install, update, and uninstall functions for the Share Everywhere module.

Code

function share_everywhere_update_8003() {
  $config = \Drupal::configFactory()
    ->getEditable('share_everywhere.settings');
  $config
    ->set('buttons.copy', [
    'name' => 'Copy URL',
    'title' => 'Copy site URL',
    'enabled' => 0,
    'image' => 'copy-url.svg',
    'weight' => 6,
  ])
    ->save();
}