public static function Slick::defaultSettings in Slick Carousel 8
Same name and namespace in other branches
- 7.3 src/Entity/Slick.php \Drupal\slick\Entity\Slick::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 SlickInterface::defaultSettings
6 calls to Slick::defaultSettings()
- Slick::getSettings in src/
Entity/ Slick.php - Returns the array of slick settings.
- Slick::removeDefaultValues in src/
Entity/ Slick.php - Strip out options containing default values so to have real clean JSON.
- SlickCrudTest::testSlickCrud in tests/
src/ Kernel/ SlickCrudTest.php - Tests CRUD operations for Slick optionsets.
- SlickForm::getFormElements in slick_ui/
src/ Form/ SlickForm.php - Defines available options for the main and responsive settings.
- SlickFormBase::typecastOptionset in slick_ui/
src/ Form/ SlickFormBase.php - Returns the typecast values.
File
- src/
Entity/ Slick.php, line 188
Class
- Slick
- Defines the Slick configuration entity.
Namespace
Drupal\slick\EntityCode
public static function defaultSettings($group = 'settings') {
return self::load('default')->options[$group];
}