You are here

function rh_user_entity_base_field_info in Rabbit Hole 8

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

Implements hook_entity_base_field_info().

File

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

Code

function rh_user_entity_base_field_info(EntityTypeInterface $entity_type) {
  if ($entity_type
    ->id() == 'user') {
    return \Drupal::service('rabbit_hole.entity_extender')
      ->getRabbitHoleFields('user');
  }
}