You are here

rh_taxonomy.module in Rabbit Hole 8

Contains rh_taxonomy.module.

File

modules/rh_taxonomy/rh_taxonomy.module
View source
<?php

/**
 * @file
 * Contains rh_taxonomy.module.
 */
use Drupal\Core\Entity\EntityTypeInterface;

/**
 * Implements hook_entity_base_field_info().
 */
function rh_taxonomy_entity_base_field_info(EntityTypeInterface $entity_type) {
  if ($entity_type
    ->id() == 'taxonomy_term') {
    return \Drupal::service('rabbit_hole.entity_extender')
      ->getRabbitHoleFields('taxonomy_term');
  }
}