public function Flexslider::getOptions in Flex Slider 8.2
Returns the array of flexslider library options.
Parameters
bool $strict: Use strict typecasting, as defined by the flexslider library. This fixes the typecasting of options that we defined differently in the schema.
Return value
array The array of options.
Overrides FlexsliderInterface::getOptions
File
- src/
Entity/ Flexslider.php, line 70
Class
- Flexslider
- Defines the Flexslider entity.
Namespace
Drupal\flexslider\EntityCode
public function getOptions($strict = FALSE) {
if ($strict) {
$options = $this->options;
if (isset($options['controlNav']) && $options['controlNav'] != 'thumbnails') {
$options['controlNav'] = boolval($options['controlNav']);
}
return $options;
}
else {
return $this->options;
}
}