function farm_ui_theme_farm_ui_theme_region_items in farmOS 2.x
Implements hook_farm_ui_theme_region_items().
File
- modules/
core/ ui/ theme/ farm_ui_theme.module, line 120 - The farmOS UI Theme module.
Code
function farm_ui_theme_farm_ui_theme_region_items(string $entity_type) {
// Define common asset, log, and plan region items on behalf of core modules.
switch ($entity_type) {
case 'asset':
return [
'top' => [
'geometry',
],
'first' => [],
'second' => [
'image',
'inventory',
'is_location',
'is_fixed',
'location',
'status',
'type',
],
'bottom' => [
'api',
'file',
],
];
case 'log':
return [
'top' => [
'geometry',
],
'first' => [],
'second' => [
'image',
'status',
'type',
],
'bottom' => [
'file',
],
];
case 'plan':
return [
'top' => [],
'first' => [],
'second' => [
'image',
'status',
'type',
],
'bottom' => [
'file',
],
];
default:
return [];
}
}