Add the Metrics block to the dashboard's second region.
This commit is contained in:
parent
635e2d0309
commit
975370b12c
|
@ -3,3 +3,5 @@ description: Adds a dashboard pane with high-level farm metrics.
|
|||
type: module
|
||||
package: farmOS UI
|
||||
core_version_requirement: ^9
|
||||
dependencies:
|
||||
- farm:farm_ui_dashboard
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* The farmOS UI Metrics module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_farm_dashboard_panes().
|
||||
*/
|
||||
function farm_ui_metrics_farm_dashboard_panes() {
|
||||
return [
|
||||
'metrics' => [
|
||||
'block' => 'farm_metrics',
|
||||
'title' => t('Metrics'),
|
||||
'region' => 'second',
|
||||
],
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue