interface MultiItemsFieldHandlerInterface
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface
- 10 core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface
Defines a field handler which renders multiple items per row.
Hierarchy
- interface \Drupal\Component\Plugin\DerivativeInspectionInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\views\Plugin\views\ViewsPluginInterface implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\views\Plugin\views\ViewsHandlerInterface implements \Drupal\views\Plugin\views\ViewsPluginInterface
- interface \Drupal\views\Plugin\views\field\FieldHandlerInterface implements \Drupal\views\Plugin\views\ViewsHandlerInterface
- interface \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface implements \Drupal\views\Plugin\views\field\FieldHandlerInterface
- interface \Drupal\views\Plugin\views\field\FieldHandlerInterface implements \Drupal\views\Plugin\views\ViewsHandlerInterface
- interface \Drupal\views\Plugin\views\ViewsHandlerInterface implements \Drupal\views\Plugin\views\ViewsPluginInterface
- interface \Drupal\views\Plugin\views\ViewsPluginInterface implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
Expanded class hierarchy of MultiItemsFieldHandlerInterface
All classes that implement MultiItemsFieldHandlerInterface
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ MultiItemsFieldHandlerInterface.php, line 10
Namespace
Drupal\views\Plugin\views\fieldView source
interface MultiItemsFieldHandlerInterface extends FieldHandlerInterface {
/**
* Renders a single item of a row.
*
* @param int $count
* The index of the item inside the row.
* @param mixed $item
* The item for the field to render.
*
* @return string
* The rendered output.
*/
public function render_item($count, $item);
/**
* Gets an array of items for the field.
*
* @param \Drupal\views\ResultRow $values
* The result row object containing the values.
*
* @return array
* An array of items for the field.
*/
public function getItems(ResultRow $values);
/**
* Render all items in this field together.
*
* @param array $items
* The items provided by getItems for a single row.
*
* @return string
* The rendered items.
*/
public function renderItems($items);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.