src/Twig/EasyAdminTwigExtension.php
public function getEntityPath($entity, $action, array $parameters = [])
    {
        return $this->easyAdminRouter->generate($entity, $action, $parameters);
    }
public function getEntityPath($entity, $action, array $parameters = [])
    {
        return $this->easyAdminRouter->generate($entity, $action, $parameters);
    }
@param object|string $entity
@param string        $action
@param array         $parameters

@return string