public function Taxonomy::getEntityTokenMap in Rabbit Hole 8
Same name and namespace in other branches
- 2.x 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\RabbitHoleEntityPluginCode
public function getEntityTokenMap() {
  return [
    'taxonomy_term' => 'term',
    'taxonomy_vocabulary' => 'vocabulary',
  ];
}