protected function Bxslider::sliderSettingsFixIntegerValues in BxSlider 8
Replace strings with digits to int.
2 calls to Bxslider::sliderSettingsFixIntegerValues()
- Bxslider::viewElements in src/
Plugin/ Field/ FieldFormatter/ Bxslider.php - Builds a renderable array for a field value.
- BxsliderThs::viewElements in src/
Plugin/ Field/ FieldFormatter/ BxsliderThs.php - Builds a renderable array for a field value.
File
- src/
Plugin/ Field/ FieldFormatter/ Bxslider.php, line 769
Class
- Bxslider
- BxSlider.
Namespace
Drupal\bxslider\Plugin\Field\FieldFormatterCode
protected function sliderSettingsFixIntegerValues(&$settings) {
array_walk_recursive($settings, function (&$value) {
if (is_numeric($value)) {
$value = (int) $value;
}
});
}