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.
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.
abstract protected LanguageManagerInterface
getLanguageManager()
Returns the language manager.
abstract protected ViewExecutable
getView()
Returns the top object of a view.