public function ViewsConditionalField::cleanVar in Views Conditional 8
Cleans a variable for handling later.
1 call to ViewsConditionalField::cleanVar()
- ViewsConditionalField::render in src/
Plugin/ views/ field/ ViewsConditionalField.php - Renders the field.
File
- src/
Plugin/ views/ field/ ViewsConditionalField.php, line 225
Class
- ViewsConditionalField
- Field handler to flag the node type.
Namespace
Drupal\views_conditional\Plugin\views\fieldCode
public function cleanVar($var) {
$unparsed = isset($var->last_render) ? $var->last_render : '';
return $this->options['strip_tags'] ? trim(strip_tags($unparsed)) : trim($unparsed);
}