#Routing

Articles

Navigation

Menus Default menus Main Account Footer Tools (unused) Administration (unused) Custom menus and links Create new menus and add...

Modules

Project updates

Rendering Code Samples

Project

A code sample contains HTML, CSS, and JS fields. A bare code sample is defined with a theme hook and template. code_sample...

Tips

Update Content Pathauto Aliases Programatically

Pathauto provides hooks for modifying aliases, but if you want to write an update hook to modify a set of custom entity aliases, it is not as simple as setting the path when Pathauto is not installed.

Pathauto puts an option to automatically generate the alias on the edit form, and this must be unset in order to set a custom alias.

In this example, the old pages are loaded by node ID, unpublished, and the url alias changed.