public function FormatterInterface::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.
3 calls to FormatterInterface::getTargetEntityId()
- FormatterBase::getConfigurableViewModes in src/
FormatterBase.php - Get the view modes which can be selected for this field formatter.
- FormatterBase::getEntitiesToView in src/
FormatterBase.php - Get the entities which will make up the table.
- FormatterBase::viewElements in src/
FormatterBase.php - Builds a renderable array for a field value.
2 methods override FormatterInterface::getTargetEntityId()
- EntityReference::getTargetEntityId in src/
Plugin/ Field/ FieldFormatter/ EntityReference.php - Get the entity which is the target of the reference field.
- FieldCollection::getTargetEntityId in src/
Plugin/ Field/ FieldFormatter/ FieldCollection.php - Get the entity which is the target of the reference field.
File
- src/
FormatterInterface.php, line 46
Class
- FormatterInterface
- Interface required to implement a reference field formatter.
Namespace
Drupal\reference_table_formatterCode
public function getTargetEntityId(FieldDefinitionInterface $field_definition);