Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MultiItemsFieldHandlerInterface.php

function MultiItemsFieldHandlerInterface::getItems

Gets an array of items for the field.

Parameters

\Drupal\views\ResultRow $values: The result row object containing the values.

Return value

array An array of items for the field.

2 methods override MultiItemsFieldHandlerInterface::getItems()
EntityField::getItems in core/modules/views/src/Plugin/views/field/EntityField.php
Gets an array of items for the field.
PrerenderList::getItems in core/modules/views/src/Plugin/views/field/PrerenderList.php
Items should be stored in the result array, if possible, as an array with 'value' as the actual displayable value of the item, plus any items that might be found in the 'alter' options array for creating links, such as…

File

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

Class

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

Namespace

Drupal\views\Plugin\views\field

Code

public function getItems(ResultRow $values);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal