EntityTranslationRenderTrait
trait EntityTranslationRenderTrait (View source)
Trait used to instantiate the view's entity translation renderer.
Properties
| protected EntityTranslationRendererBase | $entityTranslationRenderer | The renderer to be used to render the entity row. |
Methods
getEntityTranslationRenderer()
Returns the current renderer.
getEntityTranslation(EntityInterface $entity, ResultRow $row)
Returns the entity translation matching the configured row language.
string
getEntityTypeId()
Returns the entity type identifier.
getEntityTypeManager()
Returns the entity type manager.
getEntityRepository()
Returns the entity repository.
getLanguageManager()
Returns the language manager.
getView()
Returns the top object of a view.
Details
protected EntityTranslationRendererBase
getEntityTranslationRenderer()
Returns the current renderer.
FieldableEntityInterface
getEntityTranslation(EntityInterface $entity, ResultRow $row)
Returns the entity translation matching the configured row language.
abstract string
getEntityTypeId()
Returns the entity type identifier.
protected EntityTypeManagerInterface
getEntityTypeManager()
Returns the entity type manager.
protected EntityRepositoryInterface
getEntityRepository()
Returns the entity repository.
abstract protected LanguageManagerInterface
getLanguageManager()
Returns the language manager.
abstract protected ViewExecutable
getView()
Returns the top object of a view.