You are here

public function PathautoGeneratorInterface::updateEntityAlias in Pathauto 8

Creates or updates an alias for the given entity.

Parameters

EntityInterface $entity: Entity for which to update the alias.

string $op: The operation performed (insert, update)

array $options:

  • force: will force updating the path
  • language: the language for which to create the alias

Return value

array|null

  • An array with alias data in case the alias has been created or updated.
  • NULL if no operation performed.
1 method overrides PathautoGeneratorInterface::updateEntityAlias()
PathautoGenerator::updateEntityAlias in src/PathautoGenerator.php
Creates or updates an alias for the given entity.

File

src/PathautoGeneratorInterface.php, line 88

Class

PathautoGeneratorInterface
Provides and interface for PathautoGenerator.

Namespace

Drupal\pathauto

Code

public function updateEntityAlias(EntityInterface $entity, $op, array $options = []);