Rebased patch for 8.2.x
Thanks Xano, tstoeckler. Sorry for gatecrashing.
Created an issue for that, #2252743: Rename 'clone' to 'duplicate' for displays in Views UI → .
Oh, that part is totally different :) That is implemented internally in the views UI.
Sorry.
Sorry, but some UI text was changed but others not :)
We have a 'Duplicate' value for the submit label, but still 'Clone' for the form title, name default value, and placeholder text. AS well are a path still using 'clone' - That seems confusing for people, even if it is only in the interim.
Plus the changes are pretty minimal IMO.
You might as well just change the route name too? As you seem to have changed basically every other instance of views UI using 'clone' to 'Duplicate' anyway. In fact that is 90% of the patch? :)
+++ b/core/lib/Drupal/Core/Entity/EntityAccessController.php
@@ -129,6 +129,13 @@ protected function processAccessHookResults(array $access) {
+ // Duplication is the act of creating a new entity based on the information
+ // that an existing entity contains. A user therefore needs to 'view' the
+ // existing entity in order to create a new one.
This just doesn't see right. If you are duplicating an entity. You need create access atleast?
So maybe this could be simplified more, and create == duplicate or something? Rather than having to have a cumbersome condition in the EntityAccessController?
+++ b/core/lib/Drupal/Core/Entity/EntityListController.php
@@ -106,6 +106,12 @@ public function getOperations(EntityInterface $entity) {
+ 'title' => t('Duplicate'),
Some sort of $this->t?