You are here

public function SlickBase::getSetting in Slick Carousel 7.3

Same name and namespace in other branches
  1. 8.2 src/Entity/SlickBase.php \Drupal\slick\Entity\SlickBase::getSetting()

Returns the value of a slick setting.

Parameters

string $setting_name: The setting name.

Return value

mixed The setting value.

Overrides SlickBaseInterface::getSetting

File

src/Entity/SlickBase.php, line 207

Class

SlickBase
Defines the Slick configuration entity.

Namespace

Drupal\slick\Entity

Code

public function getSetting($name) {
  return isset($this
    ->getSettings()[$name]) ? $this
    ->getSettings()[$name] : NULL;
}