function StylePluginBase::usesFields

Return TRUE if this style also uses fields.

Return value

bool

3 calls to StylePluginBase::usesFields()
StylePluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php
Provide a form to edit options for this plugin.
StylePluginBase::getRowClass in drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php
Return the token replaced row class for the specified row.
StylePluginBase::renderFields in drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php
Renders all of the fields for a given style and store them on the object.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php, line 157
Definition of Drupal\views\Plugin\views\style\StylePluginBase.

Class

StylePluginBase
Base class to define a style plugin handler.

Namespace

Drupal\views\Plugin\views\style

Code

function usesFields() {

  // If we use a row plugin, ask the row plugin. Chances are, we don't
  // care, it does.
  $row_uses_fields = FALSE;
  if ($this
    ->usesRowPlugin() && !empty($this->view->rowPlugin)) {
    $row_uses_fields = $this->view->rowPlugin
      ->usesFields();
  }

  // Otherwise, check the definition or the option.
  return $row_uses_fields || $this->usesFields || !empty($this->options['uses_fields']);
}