Render metrics in small buttons

This commit is contained in:
Paul Weidner 2023-08-25 11:37:10 -07:00 committed by Michael Stenta
parent 1d0f5fe48c
commit 6be3e3639c
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class FarmMetricsBlock extends BlockBase implements ContainerFactoryPluginInterf
$count = $query->count()->execute();
$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;