You are here

public function SocialSharePrivacy::servicesWithSettings in Share Message 8

Social Share Privacy services with settings.

Return value

array Social Share Privacy services with settings.

1 call to SocialSharePrivacy::servicesWithSettings()
SocialSharePrivacy::services in src/Plugin/sharemessage/SocialSharePrivacy.php
Prepare services for drupalSettings.

File

src/Plugin/sharemessage/SocialSharePrivacy.php, line 205

Class

SocialSharePrivacy
SocialSharePrivacy plugin.

Namespace

Drupal\sharemessage\Plugin\sharemessage

Code

public function servicesWithSettings() {
  return [
    'facebook' => [
      'action' => $this->shareMessage
        ->getSetting('facebook_action') ?: $this->socialSharePrivacyConfig
        ->get('facebook_action'),
    ],
    'flattr' => [
      'uid' => $this->shareMessage
        ->getSetting('flattr_uid') ?: $this->socialSharePrivacyConfig
        ->get('flattr_uid'),
    ],
    'disqus' => [
      'shortname' => $this->shareMessage
        ->getSetting('disqus_shortname') ?: $this->socialSharePrivacyConfig
        ->get('disqus_shortname'),
    ],
  ];
}