You are here

Taxonomy.php in Rabbit Hole 8

File

modules/rh_taxonomy/src/Plugin/RabbitHoleEntityPlugin/Taxonomy.php
View 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',
    ];
  }

}

Classes

Namesort descending Description
Taxonomy Implements rabbit hole behavior for taxonomy.