You are here

rh_commerce.module in Rabbit Hole 8

Same filename and directory in other branches
  1. 2.x modules/rh_commerce/rh_commerce.module

Contains rh_commerce.module.

File

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

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

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