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