You are here

public function FieldCollection::getTargetEntityId in Reference Table Formatter 8

Get the entity which is the target of the reference field.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.

Return value

string The entity which is the target of the reference.

Overrides FormatterInterface::getTargetEntityId

File

src/Plugin/Field/FieldFormatter/FieldCollection.php, line 80

Class

FieldCollection
A field formatter to display a table.

Namespace

Drupal\reference_table_formatter\Plugin\Field\FieldFormatter

Code

public function getTargetEntityId(FieldDefinitionInterface $field_definition) {
  return 'field_collection_item';
}