public function RssFields::getField in Views RSS 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/views/row/RssFields.php \Drupal\views_rss\Plugin\views\row\RssFields::getField()
Retrieves a views field value from the style plugin.
Parameters
$index: The index count of the row as expected by views_plugin_style::getField().
$field_id: The ID assigned to the required field in the display.
File
- src/
Plugin/ views/ row/ RssFields.php, line 351 - Definition of Drupal\views\Plugin\views\row\RssFields.
Class
- RssFields
- Renders an RSS item based on fields.
Namespace
Drupal\views_rss\Plugin\views\rowCode
public function getField($index, $field_id) {
if (empty($this->view->style_plugin) || !is_object($this->view->style_plugin) || empty($field_id)) {
return '';
}
return $this->view->style_plugin
->getField($index, $field_id);
}