You are here

function rh_taxonomy_entity_base_field_info in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x modules/rh_taxonomy/rh_taxonomy.module \rh_taxonomy_entity_base_field_info()

Implements hook_entity_base_field_info().

File

modules/rh_taxonomy/rh_taxonomy.module, line 13
Contains rh_taxonomy.module.

Code

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');
  }
}