You are here

rh_file.module in Rabbit Hole 2.x

Same filename and directory in other branches
  1. 8 modules/rh_file/rh_file.module
  2. 7.2 modules/rh_file/rh_file.module

Contains rh_file.module.

File

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

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

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