Model
RtlTextHandler
Magento\Sales\Model\RtlTextHandler
What it does
This class handles Right-to-Left (RTL) text processing for Arabic and Hebrew languages in sales-related contexts.
Developers use it to detect if text contains RTL characters and to reverse the order of RTL text strings, which is essential for proper display and rendering of invoices, orders, and shipping documents in RTL languages.
Public Methods
- isRtlText()
- reverseRtlText()