Drupal 8  8.0.2
PhpTransliteration Class Reference
Inheritance diagram for PhpTransliteration:

Public Member Functions

 __construct ($data_directory=NULL, ModuleHandlerInterface $module_handler)
 
- Public Member Functions inherited from PhpTransliteration
 __construct ($data_directory=NULL)
 
 removeDiacritics ($string)
 
 transliterate ($string, $langcode= 'en', $unknown_character= '?', $max_length=NULL)
 

Protected Member Functions

 readLanguageOverrides ($langcode)
 
- Protected Member Functions inherited from PhpTransliteration
 replace ($code, $langcode, $unknown_character)
 
 lookupReplacement ($code, $unknown_character= '?')
 
 readLanguageOverrides ($langcode)
 
 readGenericData ($bank)
 

Protected Attributes

 $moduleHandler
 
- Protected Attributes inherited from PhpTransliteration
 $dataDirectory
 
 $languageOverrides = array()
 
 $genericMap = array()
 

Additional Inherited Members

- Static Protected Member Functions inherited from PhpTransliteration
static ordUTF8 ($character)
 

Detailed Description

Enhances PhpTransliteration with an alter hook.

See Also
hook_transliteration_overrides_alter()

Constructor & Destructor Documentation

__construct (   $data_directory = NULL,
ModuleHandlerInterface  $module_handler 
)

Constructs a PhpTransliteration object.

Parameters
string$data_directory(optional) The directory where data files reside. If omitted, defaults to subdirectory 'data' underneath the directory where the class's PHP file resides.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler to execute the transliteration_overrides alter hook.

References Drupal\moduleHandler().

Here is the call graph for this function:

Member Function Documentation

readLanguageOverrides (   $langcode)
protected

Overrides ::readLanguageOverrides().

Allows modules to alter the language-specific $overrides array by invoking hook_transliteration_overrides_alter().

References Drupal\moduleHandler().

Here is the call graph for this function:


The documentation for this class was generated from the following file: