1 views_plugin_style.inc views_plugin_style::uses_fields()

Return TRUE if this style also uses fields.

Return value

bool

File

core/modules/views/plugins/views_plugin_style.inc, line 94
Definition of views_plugin_style.

Class

views_plugin_style
Base class to define a style plugin handler.

Code

function uses_fields() {
  // If we use a row plugin, ask the row plugin. Chances are, we don't
  // care, it does.
  $row_uses_fields = FALSE;
  if ($this->uses_row_plugin() && !empty($this->row_plugin)) {
    $row_uses_fields = $this->row_plugin->uses_fields();
  }
  // Otherwise, check the definition or the option.
  return $row_uses_fields || !empty($this->definition['uses fields']) || !empty($this->options['uses_fields']);
}