You are here

function Markup::element_type in Views (for Drupal 7) 8.3

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

Overrides FieldPluginBase::element_type

File

lib/Drupal/views/Plugin/views/field/Markup.php, line 55
Definition of Drupal\views\Plugin\views\field\Markup.

Class

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

Namespace

Drupal\views\Plugin\views\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';
}