public function u($string, $locale = null) { return Multilang::u($string, $locale); }
/** * @dataProvider providerTestU */ public function testU($string, $locale, $expected) { $this->assertSame($expected, Multilang::u($string, $locale)); }
protected function getEntityName($entity) { return is_callable([$entity, "getName"]) ? Multilang::u($entity->getName()) : $entity->getId(); }