Skip to main content
8 events
when toggle format what by license comment
Jul 10, 2018 at 17:22 comment added Berdir Yes, if it's the same path then views will automatically re-use the existing route.
Jul 9, 2018 at 22:18 comment added Jason How does views overwrite-existing-route? Just be declaring a path?
Jul 8, 2018 at 21:06 comment added Berdir I think that would be more complicated for now good reason. Views has a overwrite-existing-route functionality on purpose, so that you can have a non-views fallback and predictable routes (although an abilty to set a route name in views would be great too). By manually calling it, you'd still have a hardcoded views dependency, it would have to be a block/embed view which has some limitations and your code would break if someone deletes that view
Jul 7, 2018 at 22:14 comment added Jason Ah, do both! Another option could be to programmatically render the view within the list_builder callback.
Jul 6, 2018 at 10:05 comment added Berdir One option is that you use a basic list builder or even the default and then also provide a view as either required or optional config. The advantage of that approach is that you still have a predictable generated route name that you can rely on for local actions and so on.
Jul 5, 2018 at 14:30 comment added Jason How is that accomplished? Do you omit the annotation list_builder, how do you encapsulate a view as config within a custom module and also use *.links.task.yml, *.links.action.yml, *.routing.yml etc to string together the functionality?
Apr 18, 2016 at 18:50 vote accept SiliconMind
Jul 6, 2016 at 20:44
Feb 26, 2016 at 19:55 history answered Berdir CC BY-SA 3.0