You are here

public function PathautoGeneratorInterface::createEntityAlias in Pathauto 8

Apply patterns to create an alias.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity.

string $op: Operation being performed on the content being aliased ('insert', 'update', 'return', or 'bulkupdate').

Return value

array|string The alias that was created.

See also

_pathauto_set_alias()

1 method overrides PathautoGeneratorInterface::createEntityAlias()
PathautoGenerator::createEntityAlias in src/PathautoGenerator.php
Apply patterns to create an alias.

File

src/PathautoGeneratorInterface.php, line 71

Class

PathautoGeneratorInterface
Provides and interface for PathautoGenerator.

Namespace

Drupal\pathauto

Code

public function createEntityAlias(EntityInterface $entity, $op);