function _sanitize_timeline_options in Views TimelineJS integration 8.3
Same name and namespace in other branches
- 7.3 theme/views_timelinejs.theme.inc \_sanitize_timeline_options()
Sanitizes the timeline options.
1 call to _sanitize_timeline_options()
- template_preprocess_views_timelinejs_view_timelinejs in ./
views_timelinejs.module - Prepares variables for the TimelineJS style template.
File
- ./
views_timelinejs.module, line 281 - Views TimelineJS API, theming, libraries, etc.
Code
function _sanitize_timeline_options($options) {
// Sanitize the options.
$options = array_map([
'Drupal\\Component\\Utility\\Html',
'escape',
], $options);
// Remove empty values from the options before returning.
return array_filter($options);
}