You are here

function RssFields::get_field in Views (for Drupal 7) 8.3

Retrieves a views field value from the style plugin.

Parameters

$index: The index count of the row as expected by views_plugin_style::get_field().

$field_id: The ID assigned to the required field in the display.

1 call to RssFields::get_field()
RssFields::render in lib/Drupal/views/Plugin/views/row/RssFields.php
Render a row object. This usually passes through to a theme template of some form, but not always.

File

lib/Drupal/views/Plugin/views/row/RssFields.php, line 195
Definition of Drupal\views\Plugin\views\row\RssFields.

Class

RssFields
Renders an RSS item based on fields.

Namespace

Drupal\views\Plugin\views\row

Code

function get_field($index, $field_id) {
  if (empty($this->view->style_plugin) || !is_object($this->view->style_plugin) || empty($field_id)) {
    return '';
  }
  return $this->view->style_plugin
    ->get_field($index, $field_id);
}