You are here

public function SlickBase::getSettings in Slick Carousel 8.2

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

Returns the array of slick settings.

Parameters

string $ansich: Whether to return the settings as is.

Return value

array The array of settings.

Overrides SlickBaseInterface::getSettings

File

src/Entity/SlickBase.php, line 68

Class

SlickBase
Defines the Slick configuration entity.

Namespace

Drupal\slick\Entity

Code

public function getSettings($ansich = FALSE) {
  if ($ansich && isset($this->options['settings'])) {
    return $this->options['settings'];
  }

  // With the Optimized options, all defaults are cleaned out, merge em.
  return isset($this->options['settings']) ? array_merge(self::defaultSettings(), $this->options['settings']) : self::defaultSettings();
}