public function SocialBlockBase::getSetting in Social Feed 8
Returns the value of a given storage setting.
Parameters
string $setting_name: The setting name.
Return value
mixed The setting value.
3 calls to SocialBlockBase::getSetting()
- FacebookPostBlock::build in src/
Plugin/ Block/ FacebookPostBlock.php - Builds and returns the renderable array for this block plugin.
- InstagramPostBlock::build in src/
Plugin/ Block/ InstagramPostBlock.php - Builds and returns the renderable array for this block plugin.
- TwitterPostBlock::build in src/
Plugin/ Block/ TwitterPostBlock.php - Builds and returns the renderable array for this block plugin.
File
- src/
Plugin/ Block/ SocialBlockBase.php, line 81
Class
- SocialBlockBase
- Abstract base class SocialBlockBase.
Namespace
Drupal\socialfeed\Plugin\BlockCode
public function getSetting($setting_name) {
$block_settings = $this
->getConfiguration();
return $block_settings['override'] ? $block_settings[$setting_name] : $this->config
->get($setting_name);
}