Skip to main content
Backdrop Forum
  • Welcome!
    • Login
    • Register
  • Forum
  • FAQ
  • Following
  • About
  • Survey

You are here

  1. Home »
  2. Add entity_save and entity_delete in core.

Add entity_save and entity_delete in core.

This was mentioned in https://github.com/backdrop-ops/contrib/issues/71#issuecomment-76859926

entity_delete entity_save

These two could be put in core. We already have methods for these on all entities. e.g. $node->save() or $node->delete().

GitHub Link: 
https://github.com/backdrop/backdrop-issues/issues/862
GitHub Issue #: 
862
  • Log in or register to post comments

Recent topics

How to programmatically insert an array into config file

Posted 9 hours 31 min ago by (stpaultim) in How-To and Troubleshooting

How to programmatically create a menu link

Posted 1 day 15 hours ago by (stpaultim) in How-To and Troubleshooting

Difference between node->save() and node_save($node)

Posted 2 days 15 hours ago by (stpaultim) in How-To and Troubleshooting

Recent comments

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('...

Posted 6 hours 44 min ago by (argiepiano) on:

How to programmatically insert an array into config file

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...

Posted 8 hours 54 min ago by Peter Anderson (BWPanda) on:

How to programmatically insert an array into config file

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...

Posted 1 day 13 hours ago by (stpaultim) on:

How to programmatically create a menu link

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

  • backdropcms.org
  • docs.backdropcms.org
  • events.backdropcms.org