3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/modules/core/inventory/farm_inventory.module

25 lines
488 B
PHP

<?php
/**
* @file
* Farm Inventory module.
*/
use Drupal\Core\Entity\EntityTypeInterface;
/**
* Implements hook_entity_base_field_info().
*/
function farm_inventory_entity_base_field_info(EntityTypeInterface $entity_type) {
module_load_include('inc', 'farm_inventory', 'farm_inventory.base_fields');
switch ($entity_type->id()) {
// Build quantity base fields.
case 'quantity':
return farm_inventory_quantity_base_fields();
default:
return [];
}
}