ProcessLanguage class

It also contains the hooks for altering the output of the InputfieldFile to hold language info and links.

This is the process assigned to processwire/setup/languages/.


Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the ProcessLanguage class also inherits all the methods and properties of: ProcessPageType, Process, WireData and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
ProcessLanguage::execute()
None
ProcessLanguage::executeDownload()
None

Create and send a ZIP of translation files or CSV of translations

ProcessLanguage::getModuleInfo()
None 
ProcessLanguage::init()
None

Add InputfieldFile hooks

 
ProcessLanguage::processCSV(string $csvFile, Language $language)
bool int

Process a CSV file to import changes from it

ProcessLanguage::processInputfieldFileInput($event)
None 
ProcessLanguage::renderInputfieldFile(HookEvent $event)
None

Hook for before InputfieldFile::render

 
ProcessLanguage::renderInputfieldFileItem(HookEvent $event)
None

Hook for InputfieldFile::renderItem

 
ProcessLanguage::renderInputfieldFileUpload(HookEvent $event)
None

Hook for InputfieldFile::renderUpload

 
ProcessLanguage::renderInputfieldForm($event)
None 
ProcessLanguage::wired()
None

Wired to ProcessWire instance

 

Additional methods and properties

In addition to the methods and properties above, ProcessLanguage also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.257