Triggers URL generation for $urlResource and $parameters.
public generate ( mixed $urlResource, array $parameters, integer $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ) : string | ||
$urlResource | mixed | Type can be anything, depending on the context. It's up to the router to pass the appropriate value to the implementor. |
$parameters | array | Arbitrary hash of parameters to generate a link. SiteAccess name can be provided as 'siteaccess' to generate a link to it (cross siteaccess link). |
$referenceType | integer | The type of reference to be generated (one of the constants) |
Результат | string |