I thought it would be useful to have a link in the operations menu next to the nodes in the content overview.

This patch adds that link.

CommentFileSizeAuthor
add_quick_clone_operation.patch926 bytesperryjanssen

Comments

perryjanssen created an issue. See original summary.

Anonymous’s picture

Status: Active » Fixed

Thanks! I like the addition

Status: Fixed » Closed (fixed)

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

dsnopek’s picture

+++ b/quick_node_clone.module
@@ -9,3 +11,24 @@ function quick_node_clone_entity_type_build(array &$entity_types) {
+    \Drupal::routeMatch()->getRouteName() === 'system.admin_content'

Why is this limited to this specific route?

If it weren't limited to this route, it'd be possible to make custom Views that have the entity operations on them, and get the the Clone link.

Anonymous’s picture

That's true. If you want to reopen or make another issue with a patch that could be resolved.