Stringy ​
- Type
- Class
- Namespace
- craft\helpers
- Inherits
- craft\helpers\Stringy »
Stringy\Stringy - Since
- 3.0.0
- Deprecated in
- in 3.5.0
The entire purpose of this class is so we can get at the charsArray in Stringy, which is a protected method and the creators did not want to expose as public.
Public Methods ​
| Method | Description |
|---|---|
| getAsciiCharMap() | Public wrapper for charsArray(). |
| getLangSpecificCharsArray() | Public wrapper for \craft\helpers\langSpecificCharsArray(). |
getAsciiCharMap() ​
Public wrapper for charsArray().
Returns ​
getLangSpecificCharsArray() ​
- Since
- 3.0.10
Public wrapper for \craft\helpers\langSpecificCharsArray().
Arguments ​
$language(string) – Language of the source string
Returns ​
array – An array of replacements
Protected Methods ​
| Method | Description |
|---|---|
| charsArray() | Returns the replacements for the toAscii() method, including any custom mappings provided by the config3:customAsciiCharMappings config setting. |
charsArray() ​
Returns the replacements for the toAscii() method, including any custom mappings provided by the config3:customAsciiCharMappings config setting.