44 lines
843 B
PHP
44 lines
843 B
PHP
<?php
|
|
|
|
namespace KimaiPlugin\KimaiHeatmapBundle\Widget;
|
|
|
|
use App\Widget\Type\AbstractWidget;
|
|
use App\Widget\WidgetInterface;
|
|
|
|
final class HeatmapWidget extends AbstractWidget
|
|
{
|
|
public function getId(): string
|
|
{
|
|
return 'HeatmapWidget';
|
|
}
|
|
|
|
public function getTitle(): string
|
|
{
|
|
return 'Activity Heatmap';
|
|
}
|
|
|
|
public function getWidth(): int
|
|
{
|
|
return WidgetInterface::WIDTH_FULL;
|
|
}
|
|
|
|
public function getHeight(): int
|
|
{
|
|
return WidgetInterface::HEIGHT_LARGE;
|
|
}
|
|
|
|
public function getPermissions(): array
|
|
{
|
|
return ['view_own_timesheet'];
|
|
}
|
|
|
|
public function getData(array $options = []): mixed
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public function getTemplateName(): string
|
|
{
|
|
return '@KimaiHeatmapBundle/widget/heatmap.html.twig';
|
|
}
|
|
}
|