src/CoreBundle/Repository/ResourceWithLinkInterface.php
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Repository;
use Chamilo\CoreBundle\Entity\ResourceInterface;
use Symfony\Component\Routing\RouterInterface;
/**
* Allows resources to connect with a custom URL.
*/
interface ResourceWithLinkInterface
{
public function getLink(ResourceInterface $resource, RouterInterface $router, array $extraParams = []): string;
}