The entity plugin is using the entity type as the #token_types.

The entity type for terms is "Taxonomy_term" and the tokens in the taxonomy module is defined by just "term".

We can extend the buildSettingsForm method in the LinkitPluginTaxonomy_Term class, and change this.

function buildSettingsForm() {
    $form = parent::buildSettingsForm();

    // The entity plugin uses the entity name for the #token_types, but terms
    // is a special case, its name is "Taxonomy_term" and the tokens are defined
    // (in the taxonomy module) with just "term".
    if (isset($form[$this->plugin['name']]['token_help']['help'])) {
      $form[$this->plugin['name']]['token_help']['help'] = array(
        '#theme' => 'token_tree',
        '#token_types' => array('term'),
      );
    }
    return $form;
}

Comments

anon’s picture

Status: Active » Fixed

Commited a fix for this.

Status: Fixed » Closed (fixed)

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