According to https://devdocs.prestashop.com/1.7/modules/concepts/hooks/list-of-hooks/
there is a hook called action<AdminControllerName>ListingFieldsModifier
I would like to use this hook, but in order to do so, I need to debug, to find out what the parameters are, etc.
So then I go into /classes/controller/AdminController.php to public function getList() in line 3153
There, the following code does nothing:
public function getList(
$id_lang,
$order_by = null,
$order_way = null,
$start = 0,
$limit = null,
$id_lang_shop = false
) {
//// THIS IS THE CODE I'VE INSERTED///
dump($this->controller_name);
die();
//// END OF MY OWN CODE///
Hook::exec('action' . $this->controller_name . 'ListingFieldsModifier', array(
'select' => &$this->_select,
'join' => &$this->_join,
'where' => &$this->_where,
'group_by' => &$this->_group,
'order_by' => &$this->_orderBy,
'order_way' => &$this->_orderWay,
'fields' => &$this->fields_list,
));
The page is loading as if nothing ever happened.
How can I debug anything in this function, when die() and dump() don't do anything?