You are here

function FieldPluginBase::element_label_classes in Views (for Drupal 7) 8.3

Return the class of the field's label.

File

lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 336
Definition of Drupal\views\Plugin\views\field\FieldPluginBase.

Class

FieldPluginBase
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

function element_label_classes($row_index = NULL) {
  $classes = explode(' ', $this->options['element_label_class']);
  foreach ($classes as &$class) {
    $class = $this
      ->tokenize_value($class, $row_index);
    $class = drupal_clean_css_identifier($class);
  }
  return implode(' ', $classes);
}