public static function Slick::getDependentOptions in Slick Carousel 8
Same name and namespace in other branches
- 8.2 src/Entity/Slick.php \Drupal\slick\Entity\Slick::getDependentOptions()
- 7.3 src/Entity/Slick.php \Drupal\slick\Entity\Slick::getDependentOptions()
Defines the dependent options.
Return value
array The dependent options.
3 calls to Slick::getDependentOptions()
- Slick::removeWastedDependentOptions in src/
Entity/ Slick.php - Removes wasted dependent options, even if not empty.
- SlickForm::getFormElements in slick_ui/
src/ Form/ SlickForm.php - Defines available options for the main and responsive settings.
- SlickUnitTest::testSlickEntity in tests/
src/ Unit/ SlickUnitTest.php - Tests for slick entity methods.
File
- src/
Entity/ Slick.php, line 307
Class
- Slick
- Defines the Slick configuration entity.
Namespace
Drupal\slick\EntityCode
public static function getDependentOptions() {
$down_arrow = [
'downArrowTarget',
'downArrowOffset',
];
return [
'arrows' => [
'prevArrow',
'nextArrow',
'downArrow',
] + $down_arrow,
'downArrow' => $down_arrow,
'autoplay' => [
'pauseOnHover',
'pauseOnDotsHover',
'autoplaySpeed',
],
'centerMode' => [
'centerPadding',
],
'dots' => [
'dotsClass',
'appendDots',
],
'swipe' => [
'swipeToSlide',
],
'useCSS' => [
'cssEase',
'cssEaseBezier',
'cssEaseOverride',
],
'vertical' => [
'verticalSwiping',
],
];
}