You are here

function hook_farm_ui_theme_region_items in farmOS 2.x

Specify the regions that asset, log, and plan content items should be in.

Parameters

string $entity_type: The entity type ('asset', 'log', or 'plan').

Return value

array An array of item name arrays, keyed by region name ('top', 'first', 'second', 'bottom'). For example: [ 'top' => [], 'first' => [], 'second' => [ 'status', 'type', ], 'bottom' => [], ];

2 functions implement hook_farm_ui_theme_region_items()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

farm_group_farm_ui_theme_region_items in modules/asset/group/farm_group.module
Implements hook_farm_ui_theme_region_items().
farm_ui_theme_farm_ui_theme_region_items in modules/core/ui/theme/farm_ui_theme.module
Implements hook_farm_ui_theme_region_items().
1 invocation of hook_farm_ui_theme_region_items()
farm_ui_theme_build_stacked_twocol_layout in modules/core/ui/theme/farm_ui_theme.module
Splits content into a stacked two-column layout.

File

modules/core/ui/theme/farm_ui_theme.api.php, line 36
Hooks provided by farm_ui_theme.

Code

function hook_farm_ui_theme_region_items(string $entity_type) {
  if ($entity_type == 'log') {
    return [
      'second' => [
        'is_movement',
      ],
    ];
  }
  return [];
}