You are here

function views_url_alias_pathauto_alias_alter in Views URL alias 8.2

Implements hook_pathauto_alias_alter().

File

./views_url_alias.module, line 96
Allows content entity Views to be filtered by path aliases.

Code

function views_url_alias_pathauto_alias_alter(&$alias, array &$context) {

  // Save alias during bulk update.
  if ($context['op'] == 'bulkupdate') {
    $entity = get_path_enitiy_type($context['source']);
    if ($entity) {
      views_url_alias_save($entity, $alias);
    }
  }
}