You are here

public function EntityToTableRendererInterface::getTable in Reference Table Formatter 8

Same name and namespace in other branches
  1. 2.0.x src/EntityToTableRendererInterface.php \Drupal\reference_table_formatter\EntityToTableRendererInterface::getTable()

Render the entities to a table.

Parameters

string $entity_type: The entity type of the given entities.

string $bundle: The bundle that the entities are composed of.

array $entities: An array of entities to put into the table.

array $settings: The settings array from the field formatter base containing keys:

  • view_mode: The target view mode to render the field settings from.
  • show_entity_label: If we should display the entity label.
  • empty_cell_value: The value to show in empty cells.

Return value

array A table renderable array.

1 method overrides EntityToTableRendererInterface::getTable()
EntityToTableRenderer::getTable in src/EntityToTableRenderer.php
Render the entities to a table.

File

src/EntityToTableRendererInterface.php, line 28

Class

EntityToTableRendererInterface
An interface for an renderer which spits out tables from entities.

Namespace

Drupal\reference_table_formatter

Code

public function getTable($entity_type, $bundle, array $entities, array $settings);