Skip to content

Commit

Permalink
Add Agent object for generic controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Oct 14, 2024
1 parent ee49f42 commit 0a7d306
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
use Glpi\Application\View\TemplateRenderer;
use Glpi\DBAL\QueryFunction;
use Glpi\Inventory\Conf;
use Glpi\Inventory\Inventory;
use Glpi\Plugin\Hooks;
use GuzzleHttp\Client as Guzzle_Client;
use GuzzleHttp\Psr7\Response;
Expand Down Expand Up @@ -333,6 +334,11 @@ public static function rawSearchOptionsToAdd()
return $tab;
}

public static function getSectorizedDetails(): array
{
return ["admin", Inventory::class, "agent"];
}

/**
* Define tabs to display on form page
*
Expand Down

0 comments on commit 0a7d306

Please sign in to comment.