1 views_handler_field_markup.inc views_handler_field_markup::element_type($none_supported = FALSE, $default_empty = FALSE, $inline = FALSE)

Return an HTML element based upon the field's element type.

Overrides views_handler_field::element_type

File

core/modules/views/handlers/views_handler_field_markup.inc, line 48
Definition of views_handler_field_markup.

Class

views_handler_field_markup
A handler to run a field through check_markup, using a companion format field.

Code

function element_type($none_supported = FALSE, $default_empty = FALSE, $inline = FALSE) {
  if ($inline) {
    return 'span';
  }

  if (isset($this->definition['element type'])) {
    return $this->definition['element type'];
  }

  return 'div';
}