You are here

public static function SlickBase::defaultSettings in Slick Carousel 8.2

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

Returns available slick default options under group 'settings'.

Parameters

string $group: The name of group: settings, responsives.

Return value

array The default settings under options.

Overrides SlickBaseInterface::defaultSettings

2 calls to SlickBase::defaultSettings()
Slick::removeDefaultValues in src/Entity/Slick.php
Strip out options containing default values so to have real clean JSON.
SlickBase::getSettings in src/Entity/SlickBase.php
Returns the array of slick settings.

File

src/Entity/SlickBase.php, line 103

Class

SlickBase
Defines the Slick configuration entity.

Namespace

Drupal\slick\Entity

Code

public static function defaultSettings($group = 'settings') {
  $settings = self::load('default')->options[$group];
  self::removeUnsupportedSettings($settings);
  return $settings;
}