You are here

public function Taxonomy::getEntityTokenMap in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 modules/rh_taxonomy/src/Plugin/RabbitHoleEntityPlugin/Taxonomy.php \Drupal\rh_taxonomy\Plugin\RabbitHoleEntityPlugin\Taxonomy::getEntityTokenMap()

Return a map of entity IDs used by this plugin to token IDs.

Return value

array A map of token IDs to entity IDs in the form ['entity ID' => 'token ID']

Overrides RabbitHoleEntityPluginBase::getEntityTokenMap

File

modules/rh_taxonomy/src/Plugin/RabbitHoleEntityPlugin/Taxonomy.php, line 21

Class

Taxonomy
Implements rabbit hole behavior for taxonomy.

Namespace

Drupal\rh_taxonomy\Plugin\RabbitHoleEntityPlugin

Code

public function getEntityTokenMap() {
  return [
    'taxonomy_term' => 'term',
    'taxonomy_vocabulary' => 'vocabulary',
  ];
}