chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Tool/Glossary.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\CourseBundle\Entity\CGlossary;

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

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

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

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

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