1 views_handler_field.inc views_handler_field::element_classes($row_index = NULL)

Return the class of the field.

File

core/modules/views/handlers/views_handler_field.inc, line 277
@todo.

Class

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

Code

function element_classes($row_index = NULL) {
  if ($this->options['element_class']) {
    $classes = explode(' ', $this->options['element_class']);
    foreach ($classes as &$class) {
      $class = _views_tokenized_clean_css_identifier($class, $this, $row_index);
    }
    return implode(' ', $classes);
  }
  return '';
}