* @owner University of Latvia * @version 3.0.1 * @since 04.07.2018 * * @package Lu\LuContacts\Hooks */ class RealUrlAutoConfiguration { /** * Generates additional RealURL configuration and merges it with provided configuration * * @param array $params Default configuration * * @return array Updated configuration */ public function addRealUrlConfig($params) { return array_merge_recursive( $params['config'], [ 'postVarSets' => [ '_DEFAULT' => [ // LU Contacts (3) 'meklesana' => [ [ 'GETvar' => 'tx_lucontacts_pi1[action]', 'valueMap' => [ 'saraksts' => 'list', 'persona' => 'person', ], ], [ 'GETvar' => 'tx_lucontacts_pi1[listType]', 'valueMap' => [ 'abc' => 'surname', 'ekas' => 'address', 'strukturvienibas' => 'unit', 'meklesana' => 'search', ], 'noMatch' => 'bypass', ], [ 'GETvar' => 'tx_lucontacts_pi1[personId]', ], ], 'unit' => [ [ 'GETvar' => 'tx_lucontacts_pi1[unit]', ], ], 'query' => [ [ 'GETvar' => 'tx_lucontacts_pi1[keyword]', ], ], 'burts' => [ [ 'GETvar' => 'tx_lucontacts_pi1[letter]', ], ], 'adrese' => [ [ 'GETvar' => 'tx_lucontacts_pi1[address]', ], ], ], ], ] ); } }