function ViewsSystemDependencies::render_item in Views System 8
Renders a single item of a row.
Parameters
int $count: The index of the item inside the row.
mixed $item: The item for the field to render.
Return value
string The rendered output.
Overrides MultiItemsFieldHandlerInterface::render_item
File
- src/
Plugin/ views/ field/ ViewsSystemDependencies.php, line 46 - Contains \Drupal\views_system\Plugin\views\field\ViewsSystemDependencies.
Class
- ViewsSystemDependencies
- Field handler to display all dependencies of a module.
Namespace
Drupal\views_system\Plugin\views\fieldCode
function render_item($count, $item) {
return !empty($item['version']) ? $item['label'] . ' ' . $item['version'] : $item['label'];
}