Implement a Delete action for entities.

#2612572: Add bulk operations to the store/product/order views
There is some work about implementing a generic action for Delete entities.
I think this should be part of Entity API module instead of commerce or other modules.

CommentFileSizeAuthor
#2 delete_action-2650152-2.patch14.26 KBvasike
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vasike created an issue. See original summary.

vasike’s picture

Status: Active » Needs review
FileSize
14.26 KB

And here is patch that adapt the work done for commerce issue : #2612572: Add bulk operations to the store/product/order views (PR https://github.com/drupalcommerce/commerce/pull/286).

What's in the patch:
- Delete action deriver - redirects to entities deletion form
- Delete multiple form
- Add "delete multiple form" routes for content entities that have form classes and collection link defined.

For test:
- import a block action config

langcode: en
status: true
dependencies:
  module:
    - block_content
id: block_content_delete_action
label: 'Delete Block content'
type: block_content
plugin: 'entity_delete_action:block_content'
configuration: {  }

- And add Bulk update field for "Custom block library" View.

vasike’s picture

#2612572-12: Add bulk operations to the store/product/order views
There is a Commerce patch which the patch here could be tested for commerce entities (stores, products, orders).

bojanz’s picture

bojanz’s picture

Status: Needs review » Fixed

The PR has been merged.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.