function rh_user_entity_base_field_info in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 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');
}
}