public function OpmlFields::getField in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/row/OpmlFields.php \Drupal\views\Plugin\views\row\OpmlFields::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.
Return value
string The rendered field value.
1 call to OpmlFields::getField()
- OpmlFields::render in core/
modules/ views/ src/ Plugin/ views/ row/ OpmlFields.php - Render a row object. This usually passes through to a theme template of some form, but not always.
File
- core/
modules/ views/ src/ Plugin/ views/ row/ OpmlFields.php, line 219 - Contains \Drupal\views\Plugin\views\row\OpmlFields.
Class
- OpmlFields
- Renders an OPML item based on fields.
Namespace
Drupal\views\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 (string) $this->view->style_plugin
->getField($index, $field_id);
}