I agree with BWPanda about the better way to add a filter. As for your general question on how to add an array to a config file (which gets stored as json), have you tried:
$config = config('...
I think that directly editing config is rarely, if ever, the best way to do something...
Perhaps try loading a format (with it's filters) using filter_format_load(), add the new filter array (by...
Posted2 hours 32 min ago by Peter Anderson (BWPanda) on:
My initial goal was to create a menu item that linked to a view that I had configured and that was being created on installation of the module, by including the view config file.
To do this, I just...
Yep, node_save() is just a wrapper for $node->save(). This is because the latter is Object-Oriented Programming (OOP), and a lot of people aren't as familiar with that. So the former can be used...
Posted2 days 6 hours ago by Peter Anderson (BWPanda) on:
Seems that they must be the same thing.
https://docs.backdropcms.org/api/backdrop/core%21modules%21node%21node.m...
I am wondering now if the different behavior I experienced was impacted by other...
Comments
I'm not sure if Statistics is part of core any more.
it's not, but I will be very helpful a sort by content views filter
Statistic module is on, but Views doesn´t have that sorting option, did you find a solution in this 2 years? or is there another way to achieve this?