function hook_slick_overridable_options_info_alter in Slick Carousel 8
Same name and namespace in other branches
- 8.2 slick.api.php \hook_slick_overridable_options_info_alter()
- 7.3 slick.api.php \hook_slick_overridable_options_info_alter()
Modifies overridable options at admin UI to re-use one optionset.
Only accepts boolean values as these are displayed as checkboxes under `Override main optionset` form field at Slick formatter/ Slick Views forms.
See also
\Drupal\slick\Form\SlickAdmin::getOverridableOptions()
config/install/slick.optionset.default.yml
Related topics
1 invocation of hook_slick_overridable_options_info_alter()
- SlickAdmin::getOverridableOptions in src/
Form/ SlickAdmin.php - Returns overridable options to re-use one optionset.
File
- ./
slick.api.php, line 508 - Hooks and API provided by the Slick module.
Code
function hook_slick_overridable_options_info_alter(&$options) {
// Adds RTL option to Slick field formatters, or Slick Views UI forms.
$options['rtl'] = t('RTL');
}