function farm_group_entity_base_field_info in farmOS 2.x
Implements hook_entity_base_field_info().
File
- modules/asset/ group/ farm_group.module, line 14 
- Contains farm_group.module.
Code
function farm_group_entity_base_field_info(EntityTypeInterface $entity_type) {
  module_load_include('inc', 'farm_group', 'farm_group.base_fields');
  switch ($entity_type
    ->id()) {
    // Build asset base fields.
    case 'asset':
      return farm_group_asset_base_fields();
    // Build log base fields.
    case 'log':
      return farm_group_log_base_fields();
    default:
      return [];
  }
}