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

Breadcrumb

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

function HtmlDumper::getSourceLink

Overrides CliDumper::getSourceLink

1 call to HtmlDumper::getSourceLink()
HtmlDumper::style in vendor/symfony/var-dumper/Dumper/HtmlDumper.php
Decorates a value with some style.

File

vendor/symfony/var-dumper/Dumper/HtmlDumper.php, line 960

Class

HtmlDumper
HtmlDumper dumps variables as HTML.

Namespace

Symfony\Component\VarDumper\Dumper

Code

private function getSourceLink(string $file, int $line) : string|false {
    $options = $this->extraDisplayOptions + $this->displayOptions;
    if ($fmt = $options['fileLinkFormat']) {
        return \is_string($fmt) ? strtr($fmt, [
            '%f' => $file,
            '%l' => $line,
        ]) : $fmt->format($file, $line);
    }
    return false;
}

API Navigation

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