chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Tool/UserGroup.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Tool;

use Chamilo\CoreBundle\Entity\Usergroup as UsergroupEntity;

class UserGroup extends AbstractTool implements ToolInterface
{
    public function getTitle(): string
    {
        return 'usergroup';
    }

    public function getCategory(): string
    {
        return 'admin';
    }

    public function getIcon(): string
    {
        return 'mdi-account-group';
    }

    public function getLink(): string
    {
        return '/resources/usergroup/';
    }

    public function getResourceTypes(): ?array
    {
        return [
            'usergroups' => UsergroupEntity::class,
        ];
    }
}