You are here

class reference_table_formatter_taxonomy_term_reference in Reference Table Formatter 7

Class reference_table_formatter_field_collection

Hierarchy

Expanded class hierarchy of reference_table_formatter_taxonomy_term_reference

1 string reference to 'reference_table_formatter_taxonomy_term_reference'
taxonomy_term_reference.inc in plugins/reference_types/taxonomy_term_reference.inc

File

plugins/reference_types/taxonomy_term_reference.inc, line 15

View source
class reference_table_formatter_taxonomy_term_reference extends reference_table_formatter_base_type {

  /**
   * {@inheritdoc}
   */
  public function get_bundles() {
    $bundles = array();
    foreach ($this->field['settings']['allowed_values'] as $allowed_values) {
      $bundles[] = $allowed_values['vocabulary'];
    }
    return $bundles;
  }

  /**
   * {@inheritdoc}
   */
  public function entity_name() {
    return 'taxonomy_term';
  }

  /**
   * {@inheritdoc}
   */
  function renderable_properties() {
    return array(
      'name',
    );
  }

  /**
   * {@inheritdoc}
   */
  function load_entity_from_item($item) {
    return taxonomy_term_load($item['tid']);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
reference_table_formatter_base_type::$field protected property
reference_table_formatter_base_type::$instance protected property
reference_table_formatter_base_type::$settings protected property
reference_table_formatter_base_type::get_bundle_fields function Load all of the fields that can be displayed for a field and instance.
reference_table_formatter_base_type::get_configured_field_list public function The list of fields which will be shown to the user during render.
reference_table_formatter_base_type::get_entity_properties function Get the properties off an entity that are available for rendering.
reference_table_formatter_base_type::get_entity_property_label function Get the label of a property. 1
reference_table_formatter_base_type::get_renderable_fields function Get the fields and properties which can be rendered.
reference_table_formatter_base_type::get_summary public function Get a summary of the configured fields.
reference_table_formatter_base_type::get_view_modes public function Get view modes from the referenced entity.
reference_table_formatter_base_type::hide_empty public function Should empty columns be hidden.
reference_table_formatter_base_type::hide_empty_columns public function Hide columns in a table which are empty.
reference_table_formatter_base_type::is_field public function Check if a key is a property or field.
reference_table_formatter_base_type::render_table public function Render a table of content from the plugin.
reference_table_formatter_base_type::show_all_fields public function Check if the user has left the field checkboxes blank, rendering them all.
reference_table_formatter_base_type::show_header public function Check if the header should be shown on the front-end.
reference_table_formatter_base_type::__construct public function Standard plugin constructor.
reference_table_formatter_taxonomy_term_reference::entity_name public function The entity types that is referenced by the field. Overrides reference_table_formatter_base_type::entity_name
reference_table_formatter_taxonomy_term_reference::get_bundles public function Get a list of bundles which can be referenced by this field. Overrides reference_table_formatter_base_type::get_bundles
reference_table_formatter_taxonomy_term_reference::load_entity_from_item function Load the target entity from the given item. Overrides reference_table_formatter_base_type::load_entity_from_item
reference_table_formatter_taxonomy_term_reference::renderable_properties function Get a list of properties off the target entity which are renderable. Overrides reference_table_formatter_base_type::renderable_properties