|
|
@ -1333,13 +1333,13 @@ class TwigExtension extends AbstractExtension { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns the tranlation for the given entity. |
|
|
|
* Returns the translation for the given entity. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param object $entity |
|
|
|
* @param object $entity |
|
|
|
* The entity to get the translation from. |
|
|
|
* The entity to get the translation from. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string $langcode |
|
|
|
* @param string $langcode |
|
|
|
* (optional) For which language the trnaslation should be looked for, |
|
|
|
* (optional) For which language the translation should be looked for, |
|
|
|
* defaults to the current language context. |
|
|
|
* defaults to the current language context. |
|
|
|
* |
|
|
|
* |
|
|
|
* @return EntityInterface |
|
|
|
* @return EntityInterface |
|
|
|