In trying to use tokens for pathauto using https://www.drupal.org/project/pathauto_entity it tests for 'uri callback' or 'token type'

function pathauto_entity_supported_entity_types() {
...
  foreach ($entity_infos as $entity_type => $entity_info) {
    if (empty($entity_info['uri callback']) || empty($entity_info['token type'])) {
      unset($entity_infos[$entity_type]);
    }
  }

Adding 'token type' helps generating path alias.

CommentFileSizeAuthor
country-entity-token.patch446 bytesclemens.tolboom

Comments

webflo’s picture

Status: Needs review » Fixed

Thanks, the patch is committed but it did not work because #2464325: make countries available for path alias is not committed yet.

webflo’s picture

clemens.tolboom’s picture

Title: Add coutry uri to entity info » Add country uri to entity info

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.