New answers tagged

2

After some digging around through the available services and core classes, I have determined you need to get the nid through the path.alias_manager. Additionally you need to wrap everything in a couple of conditions or you will throw errors if the path does not exist. (eg. if you are trying to roll this change out to a fleet of sites that might or might ...


0

I think this can be done with Drupal 8 and VBO (at least it worked for me) - using the "Modify field values" action - because "Generate automatic URL alias" is just a field automatically provided for each item of content. The caveat is that you'll have to do it for each content type, but this can all be done on the same form as follows :- Select the items ...


Top 50 recent answers are included