function views_url_alias_path_insert in Views URL alias 8.2
Respond to a path being inserted.
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 49 - Allows content entity Views to be filtered by path aliases.
Code
function views_url_alias_path_insert($path) {
$entity = get_path_enitiy_type($path['source']);
if ($entity) {
views_url_alias_save($entity, $path['alias']);
}
}