public function FieldPluginBase::elementWrapperClasses in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::elementWrapperClasses()
Returns the class of the field's wrapper.
Parameters
bool $row_index: The index of current row.
Overrides FieldHandlerInterface::elementWrapperClasses
File
- core/
modules/ views/ src/ Plugin/ views/ field/ FieldPluginBase.php, line 390
Class
- FieldPluginBase
- Base class for views fields.
Namespace
Drupal\views\Plugin\views\fieldCode
public function elementWrapperClasses($row_index = NULL) {
$classes = $this
->tokenizeValue($this->options['element_wrapper_class'], $row_index);
$classes = explode(' ', $classes);
foreach ($classes as &$class) {
$class = Html::cleanCssIdentifier($class);
}
return implode(' ', $classes);
}