I’d like to modify some options in the simple-cookie plugin blueprints.yaml and save it to my theme folder to prevent it from being overridden by future updates.
How can I do it and where should I save the plugin’s blueprints.yaml file?
I am trying to override the blueprints.yaml for the simple-cookie plugin and I’ve created a folder into config/plugins, called simple-cookie with a blueprints.yaml modified inside.
After that I have the following error:
An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()").
Hello @pmoreno !
Have you tried to clone the plugin and renaming the Class name in the plugin main php file ?
I’ve never done that personally… but I would follow the same logic as in this section :
I’m a novice programmer and although I’ve used inheritance in themes, I don’t see it as easy with plugins. For example, to create a child theme, just create the theme.php file with the following lines:
<?php
namespace Grav\Theme;
class CustomQuark extends Quark
{
}
However, with plugins I have used the same strategy with:
class CustomSimpleCookiePlugin extends SimpleCookiePlugin
{