public function SlickBase::getSettings in Slick Carousel 7.3
Same name and namespace in other branches
- 8.2 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 187
Class
- SlickBase
- Defines the Slick configuration entity.
Namespace
Drupal\slick\EntityCode
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']) ? NestedArray::mergeDeep(self::defaultSettings(), $this->options['settings']) : self::defaultSettings();
}