You are here

function commerce_backoffice_handler_field_term_entity_tid::get_items in Commerce Backoffice 7

Return an array of items for the field.

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 'path', 'fragment', 'query' etc, such a thing is to be made. Additionally, items that might be turned into tokens should also be in this array.

Parameters

mixed $values:

Return value

array The items.

Overrides views_handler_field_prerender_list::get_items

File

includes/views/handlers/commerce_backoffice_handler_field_term_entity_tid.inc, line 128
Definition of commerce_backoffice_handler_field_term_entity_tid.

Class

commerce_backoffice_handler_field_term_entity_tid
Field handler to display all taxonomy terms of an entity.

Code

function get_items($values) {
  return isset($values->{'taxonomy_term_' . $this->options['id']}) ? $values->{'taxonomy_term_' . $this->options['id']} : array();
}