You are here

public function FormatterInterface::getTargetBundleId in Reference Table Formatter 8

Get the target bundle from a reference field.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition to check the target bundle.

Return value

string The bundle that is the target of the field.

Throws

\Exception

1 call to FormatterInterface::getTargetBundleId()
FormatterBase::viewElements in src/FormatterBase.php
Builds a renderable array for a field value.
2 methods override FormatterInterface::getTargetBundleId()
EntityReference::getTargetBundleId in src/Plugin/Field/FieldFormatter/EntityReference.php
Get the target bundle from a reference field.
FieldCollection::getTargetBundleId in src/Plugin/Field/FieldFormatter/FieldCollection.php
Get the target bundle from a reference field.

File

src/FormatterInterface.php, line 35

Class

FormatterInterface
Interface required to implement a reference field formatter.

Namespace

Drupal\reference_table_formatter

Code

public function getTargetBundleId(FieldDefinitionInterface $field_definition);