Render metrics in small buttons
This commit is contained in:
parent
1d0f5fe48c
commit
6be3e3639c
|
@ -153,7 +153,7 @@ class FarmMetricsBlock extends BlockBase implements ContainerFactoryPluginInterf
|
||||||
|
|
||||||
$count = $query->count()->execute();
|
$count = $query->count()->execute();
|
||||||
$route_name = "view.farm_$entity_type.page_type";
|
$route_name = "view.farm_$entity_type.page_type";
|
||||||
$metrics[] = Link::createFromRoute($bundle_info['label'] . ': ' . $count, $route_name, ['arg_0' => $bundle], ['attributes' => ['class' => ['metric', 'button']]])->toString();
|
$metrics[] = Link::createFromRoute($bundle_info['label'] . ': ' . $count, $route_name, ['arg_0' => $bundle], ['attributes' => ['class' => ['metric', 'button', 'button--small']]])->toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $metrics;
|
return $metrics;
|
||||||
|
|
Loading…
Reference in New Issue