| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 27 | public function transWithPattern(AdminConfiguration $configuration, string $id): string |
||
| 28 | { |
||
| 29 | $key = TranslationUtils::getTranslationKey( |
||
| 30 | $configuration->getTranslationPattern(), |
||
| 31 | $configuration->getName(), |
||
| 32 | StringUtils::underscore($id) |
||
| 33 | ); |
||
| 34 | |||
| 35 | return $this->trans($key, [], $configuration->getTranslationCatalog()); |
||
| 36 | } |
||
| 38 |