In #3076877: Show that the entity has been soft deleted we gave some output that indicates that the entity has been deleted, but the local task (tab) still gives us the option to Delete. I'm thinking that could be confusing. Could we dynamically switch the tab to "Restore" if the entity has been deleted?

This patch requires that the getSupportedEntityTypes() method be on the delete manager service. That was changed in #3078441: Add a views exposed filter whos access can be restricted. So I guess this patch depends on it.

CommentFileSizeAuthor
entity_delete_op-dynamic-tab.patch3.54 KBTim Bozeman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Tim Bozeman created an issue. See original summary.

  • Tim Bozeman authored a675b93 on 8.x-1.x
    Issue #3078791 by Tim Bozeman: Dynamic Delete/Restore tab
    
Tim Bozeman’s picture

Status: Needs review » Fixed

I gotta admit. I'm impressed!

Tim Bozeman’s picture

Status: Fixed » Closed (fixed)