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

Breadcrumb

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

function RoutableFragmentRenderer::generateFragmentUri

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:

1 call to RoutableFragmentRenderer::generateFragmentUri()
InlineFragmentRenderer::render in vendor/symfony/http-kernel/Fragment/InlineFragmentRenderer.php
Additional available options:

File

vendor/symfony/http-kernel/Fragment/RoutableFragmentRenderer.php, line 46

Class

RoutableFragmentRenderer
Adds the possibility to generate a fragment URI for a given Controller.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

protected function generateFragmentUri(ControllerReference $reference, Request $request, bool $absolute = false, bool $strict = true) : string {
    return (new FragmentUriGenerator($this->fragmentPath))
        ->generate($reference, $request, $absolute, $strict, false);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal