function StylePluginBase::usesFields in Views (for Drupal 7) 8.3
Return TRUE if this style also uses fields.
Return value
bool
3 calls to StylePluginBase::usesFields()
- StylePluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php - Provide a form to edit options for this plugin.
- StylePluginBase::get_row_class in lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php - Return the token replaced row class for the specified row.
- StylePluginBase::render_fields in lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php - Render all of the fields for a given style and store them on the object.
File
- lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php, line 149 - Definition of Drupal\views\Plugin\views\style\StylePluginBase.
Class
- StylePluginBase
- Base class to define a style plugin handler.
Namespace
Drupal\views\Plugin\views\styleCode
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->row_plugin)) {
$row_uses_fields = $this->row_plugin
->usesFields();
}
// Otherwise, check the definition or the option.
return $row_uses_fields || $this->usesFields || !empty($this->options['uses_fields']);
}