When we created the config object we needed a method to remove a single value from within the file. Instead of using delete like Drupal had, we had to choose another word because $config->delete() will delete the entire configuration file. We chose the word clear which isn't intuitive, and sends people to the API docs to figure out what it will do.
Is it worthwhile to change this to 'remove' or is it not worth the cost of change?
Recent comments
Hey there! That error message is definitely a head-scratcher. Even though you uninstalled Views, it sounds like something is still referencing a Views-related constant. Maybe a custom module or...
VIEWS_STORAGE_OVERRIDE
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout