rh_media.module in Rabbit Hole 8
Same filename and directory in other branches
Contains rh_media.module.
File
modules/rh_media/rh_media.moduleView source
<?php
/**
* @file
* Contains rh_media.module.
*/
use Drupal\Core\Entity\EntityTypeInterface;
/**
* Implements hook_entity_base_field_info().
*/
function rh_media_entity_base_field_info(EntityTypeInterface $entity_type) {
if ($entity_type
->id() == 'media') {
return \Drupal::service('rabbit_hole.entity_extender')
->getRabbitHoleFields('media');
}
}
Functions
Name | Description |
---|---|
rh_media_entity_base_field_info | Implements hook_entity_base_field_info(). |