function MultiItemsFieldHandlerInterface::render_item

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface::render_item()
  2. 10 core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface::render_item()
  3. 11.x core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface::render_item()

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.

4 methods override MultiItemsFieldHandlerInterface::render_item()
EntityField::render_item in core/modules/views/src/Plugin/views/field/EntityField.php
Renders a single item of a row.
Permissions::render_item in core/modules/user/src/Plugin/views/field/Permissions.php
Renders a single item of a row.
Roles::render_item in core/modules/user/src/Plugin/views/field/Roles.php
Renders a single item of a row.
TaxonomyIndexTid::render_item in core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php
Renders a single item of a row.

File

core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php, line 23

Class

MultiItemsFieldHandlerInterface
Defines a field handler which renders multiple items per row.

Namespace

Drupal\views\Plugin\views\field

Code

public function render_item($count, $item);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.