Edit defaultOrders in controller
What would be the most correct way to edit?
$this->defaultOrders of ModuleController in my controller, I understand that setting it in setUpController would work, but it is not a public method,
My idea is something similar to this:
$this->enableReorder();
$this->defaultOrders = [ 'publish_start_date' => 'desc'];
1 Reply
you can override the class property directly, so outside of the constructor