function rh_file_entity_base_field_info in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 modules/rh_file/rh_file.module \rh_file_entity_base_field_info()
Implements hook_entity_base_field_info().
File
- modules/
rh_file/ rh_file.module, line 13 - Contains rh_file.module.
Code
function rh_file_entity_base_field_info(EntityTypeInterface $entity_type) {
if ($entity_type
->id() == 'file') {
return \Drupal::service('rabbit_hole.entity_extender')
->getRabbitHoleFields('file');
}
}