Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FragmentUriGeneratorInterface.php

function FragmentUriGeneratorInterface::generate

Generates a fragment URI for a given controller.

Parameters

bool $absolute Whether to generate an absolute URL or not:

bool $strict Whether to allow non-scalar attributes or not:

bool $sign Whether to sign the URL or not:

1 method overrides FragmentUriGeneratorInterface::generate()
FragmentUriGenerator::generate in vendor/symfony/http-kernel/Fragment/FragmentUriGenerator.php
Generates a fragment URI for a given controller.

File

vendor/symfony/http-kernel/Fragment/FragmentUriGeneratorInterface.php, line 31

Class

FragmentUriGeneratorInterface
Interface implemented by rendering strategies able to generate a URL for a fragment.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

public function generate(ControllerReference $controller, ?Request $request = null, bool $absolute = false, bool $strict = true, bool $sign = true) : string;
RSS feed
Powered by Drupal