You are here

public function CommerceContentEntityInterface::getTranslatedReferencedEntities in Commerce Core 8.2

Gets the translations of an entity reference field.

Parameters

string $field_name: The entity reference field name.

Return value

\Drupal\Core\Entity\ContentEntityInterface[] The translated entities.

1 method overrides CommerceContentEntityInterface::getTranslatedReferencedEntities()
CommerceContentEntityBase::getTranslatedReferencedEntities in src/Entity/CommerceContentEntityBase.php
Gets the translations of an entity reference field.

File

src/Entity/CommerceContentEntityInterface.php, line 21

Class

CommerceContentEntityInterface
Provides the interface for Commerce content entities.

Namespace

Drupal\commerce\Entity

Code

public function getTranslatedReferencedEntities($field_name);