projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
vendor
/
chi-teck
/
drupal-code-generator
/
templates
/
d8
/
hook
/
path_update.twig
1
/**
2
* Implements hook_path_update().
3
*/
4
function {{ machine_name }}_path_update($path) {
5
if ($path['alias'] != $path['original']['alias']) {
6
db_update('mytable')
7
->fields(['alias' => $path['alias']])
8
->condition('pid', $path['pid'])
9
->execute();
10
}
11
}