You are here

function pathauto_entity_update in Pathauto 8

Same name and namespace in other branches
  1. 7 pathauto.module \pathauto_entity_update()

Implements hook_entity_update().

File

./pathauto.module, line 92
pathauto Pathauto: Automatically generates aliases for content

Code

function pathauto_entity_update(EntityInterface $entity) {
  \Drupal::service('pathauto.generator')
    ->updateEntityAlias($entity, 'update');
}