You are here

public function CommerceContentEntityInterface::getTranslatedReferencedEntity in Commerce Core 8.2

Gets the translation of a referenced entity.

Parameters

string $field_name: The entity reference field name.

Return value

\Drupal\Core\Entity\ContentEntityInterface|null The translated entity, or NULL if not found.

1 method overrides CommerceContentEntityInterface::getTranslatedReferencedEntity()
CommerceContentEntityBase::getTranslatedReferencedEntity in src/Entity/CommerceContentEntityBase.php
Gets the translation of a referenced entity.

File

src/Entity/CommerceContentEntityInterface.php, line 32

Class

CommerceContentEntityInterface
Provides the interface for Commerce content entities.

Namespace

Drupal\commerce\Entity

Code

public function getTranslatedReferencedEntity($field_name);