Commit 09067690 authored by Jasper Lammens's avatar Jasper Lammens Committed by rudiedirkx
Browse files

Issue #2852022 by LammensJ: Reset to alphabetical order

parent 79ac34e4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -34,6 +34,14 @@ class RouteSubscriber extends RouteSubscriberBase {
      ));
      $route->setOption('op', 'add terms');
    }

    // admin/structure/taxonomy/manage/%vocabulary/reset
    if ($route = $collection->get('entity.taxonomy_vocabulary.reset_form')) {
      $route->setRequirements(array(
        '_custom_access' => '\taxonomy_access_fix_route_access',
      ));
      $route->setOption('op', 'reorder terms');
    }
  }

}