1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 12:10:45 +02:00

Make ProcessLanguage::processCSV() method hookable per request

This commit is contained in:
Ryan Cramer
2022-02-25 14:17:15 -05:00
parent 9a8942ae9d
commit ffc95a04a8

View File

@@ -9,6 +9,9 @@
* ProcessWire 3.x, Copyright 2019 by Ryan Cramer * ProcessWire 3.x, Copyright 2019 by Ryan Cramer
* https://processwire.com * https://processwire.com
* *
* @method string execute()
* @method string executeDownload()
* @method bool|int processCSV($csvFile, Language $language, array $options = array())
* *
*/ */
@@ -467,9 +470,10 @@ class ProcessLanguage extends ProcessPageType {
* - `quiet` (bool): Suppress generating notifications? (default=false) * - `quiet` (bool): Suppress generating notifications? (default=false)
* @return bool|int Returns false on error or integer on success, where value is number of translations imported * @return bool|int Returns false on error or integer on success, where value is number of translations imported
* @throws WireException * @throws WireException
* @since 3.0.195 Previously was not hookable
* *
*/ */
public function processCSV($csvFile, Language $language, array $options = array()) { public function ___processCSV($csvFile, Language $language, array $options = array()) {
$defaults = array( $defaults = array(
'file' => '', 'file' => '',