You are here

protected function SocialBlockBase::defaultSettingValue in Social Feed 8

Defines the default settings.

Parameters

string $setting_name: The setting name.

Return value

mixed The setting value.

3 calls to SocialBlockBase::defaultSettingValue()
FacebookPostBlock::blockForm in src/Plugin/Block/FacebookPostBlock.php
Returns the configuration form elements specific to this block plugin.
InstagramPostBlock::blockForm in src/Plugin/Block/InstagramPostBlock.php
Returns the configuration form elements specific to this block plugin.
TwitterPostBlock::blockForm in src/Plugin/Block/TwitterPostBlock.php
Returns the configuration form elements specific to this block plugin.

File

src/Plugin/Block/SocialBlockBase.php, line 159

Class

SocialBlockBase
Abstract base class SocialBlockBase.

Namespace

Drupal\socialfeed\Plugin\Block

Code

protected function defaultSettingValue($setting_name) {
  $settings = $this
    ->getConfiguration();
  return isset($settings[$setting_name]) ? $settings[$setting_name] : $this->config
    ->get($setting_name);
}