| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function getLabel(ItemInterface $item, string $domain = null, string $locale = null): string |
||
| 32 | { |
||
| 33 | $label = $item->getLabel(); |
||
| 34 | $parameters = $label instanceof TranslatableItemLabelInterface ? $label->getParameters() : []; |
||
| 35 | |||
| 36 | return $this->translator->trans($label->getValue(), $parameters, $domain, $locale); |
||
| 37 | } |
||
| 48 |