public function DrupalSliderViewsField::cleanVar in Drupal Slider 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/field/DrupalSliderViewsField.php \Drupal\drupal_slider\Plugin\views\field\DrupalSliderViewsField::cleanVar()
Cleans a variable for handling later.
1 call to DrupalSliderViewsField::cleanVar()
- DrupalSliderViewsField::render in src/
Plugin/ views/ field/ DrupalSliderViewsField.php - Renders the field.
File
- src/
Plugin/ views/ field/ DrupalSliderViewsField.php, line 108
Class
- DrupalSliderViewsField
- Field handler for Drupal Slider.
Namespace
Drupal\drupal_slider\Plugin\views\fieldCode
public function cleanVar($var) {
$unparsed = isset($var->last_render) ? $var->last_render : '';
return trim($unparsed);
}