You are here

function extlink_update_8101 in External Links 8

Add extlink and mailto icon labels to the default configuration.

File

./extlink.install, line 19
Install hook for the External Links module.

Code

function extlink_update_8101() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('extlink.settings');
  $config
    ->set('extlink_label', '(link is external)');
  $config
    ->set('extlink_mailto_label', '(link sends email)');
  $config
    ->save(TRUE);
}