mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-08-21 09:48:12 +02:00
24 lines
584 B
PHP
24 lines
584 B
PHP
<?php
|
|
|
|
/* Icinga Web 2 | (c) 2022 Icinga GmbH | GPLv2+ */
|
|
|
|
namespace Icinga\Web\Dashboard\Common;
|
|
|
|
/**
|
|
* Sortable interface that allows to reorder the provided dashboard entry
|
|
* and update the database accordingly
|
|
*/
|
|
interface Sortable
|
|
{
|
|
/**
|
|
* Insert the dashboard entry at the given position within this dashboard entries
|
|
*
|
|
* @param BaseDashboard $dashboard
|
|
* @param int $position
|
|
* @param Sortable|null $origin
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function reorderWidget(BaseDashboard $dashboard, int $position, Sortable $origin = null);
|
|
}
|