function views_url_alias_path_update in Views URL alias 8.2
Respond to a path being updated.
Parameters
array $path: The array structure is identical to that of the return value of \Drupal\Core\Path\AliasStorageInterface::save().
See also
\Drupal\Core\Path\AliasStorageInterface::save()
File
- ./
views_url_alias.module, line 65 - Allows content entity Views to be filtered by path aliases.
Code
function views_url_alias_path_update($path) {
$entity = get_path_enitiy_type($path['source']);
if ($entity) {
views_url_alias_save($entity, $path['alias']);
}
}