You are here

public function Addthis::getSetting in Share Message 8

Gets the default AddThis settings.

Parameters

string $key: The settings key.

Return value

array

Overrides SharePluginInterface::getSetting

2 calls to Addthis::getSetting()
Addthis::build in src/Plugin/sharemessage/Addthis.php
Creates the AddThis toolbar.
Addthis::buildConfigurationForm in src/Plugin/sharemessage/Addthis.php
Form constructor.

File

src/Plugin/sharemessage/Addthis.php, line 69

Class

Addthis
AddThis plugin.

Namespace

Drupal\sharemessage\Plugin\sharemessage

Code

public function getSetting($key) {
  $override = $this->shareMessage
    ->getSetting('override_default_settings');
  if (isset($override)) {
    return $this->shareMessage
      ->getSetting($key);
  }
}