You are here

public function DrupalSliderThumbnails::cleanVar in Drupal Slider 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/field/DrupalSliderThumbnails.php \Drupal\drupal_slider\Plugin\views\field\DrupalSliderThumbnails::cleanVar()

Cleans a variable for handling later.

1 call to DrupalSliderThumbnails::cleanVar()
DrupalSliderThumbnails::render in src/Plugin/views/field/DrupalSliderThumbnails.php
Renders the field.

File

src/Plugin/views/field/DrupalSliderThumbnails.php, line 77

Class

DrupalSliderThumbnails
Field handler for Drupal Slider.

Namespace

Drupal\drupal_slider\Plugin\views\field

Code

public function cleanVar($var) {
  $unparsed = isset($var->last_render) ? $var->last_render : '';
  return trim($unparsed);
}