Skip to content

Added Internal API method

Compare
Choose a tag to compare
@Warxcell Warxcell released this 02 Aug 13:50
· 156 commits to master since this release

If you wish to get single translation without initialize it, you can use:

/** @var $translation \VM5\EntityTranslationBundle\Model\Translation */
$translation = $this->get('vm5_entity_translations.translation_loader')->getTranslation($entity, 'bg');

Argument #2 can be either string locale or Language entity.