url_generator
trait url_generator
Trait url_generator.
Provides STATIC helper methods to generate URLs via the Kernel. Useful for Facades, Utils, or classes that are not instantiated via Container.
Methods
static moodle_url
url_generator(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
Generate a URL based on the Symfony route name and parameters.
static moodle_url
webhook_url_generator(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
Generate a webhook URL.
Details
at line 42
static moodle_url
url_generator(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
Generate a URL based on the Symfony route name and parameters.
at line 56
static moodle_url
webhook_url_generator(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
Generate a webhook URL.