Taxonomy.php in Rabbit Hole 8
Same filename and directory in other branches
File
modules/rh_taxonomy/src/Plugin/RabbitHoleEntityPlugin/Taxonomy.phpView source
<?php
namespace Drupal\rh_taxonomy\Plugin\RabbitHoleEntityPlugin;
use Drupal\rabbit_hole\Plugin\RabbitHoleEntityPluginBase;
/**
* Implements rabbit hole behavior for taxonomy.
*
* @RabbitHoleEntityPlugin(
* id = "rh_taxonomy_term",
* label = @Translation("Taxonomy Term"),
* entityType = "taxonomy_term"
* )
*/
class Taxonomy extends RabbitHoleEntityPluginBase {
/**
* {@inheritdoc}
*/
public function getEntityTokenMap() {
return [
'taxonomy_term' => 'term',
'taxonomy_vocabulary' => 'vocabulary',
];
}
}