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

Breadcrumb

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

function File::abbreviateClassName

2 calls to File::abbreviateClassName()
File::abbreviateMethodName in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php
File::renderTraitOrClassItems in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php

File

vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php, line 1062

Class

File
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\Report\Html

Code

private function abbreviateClassName(string $className) : string {
    $tmp = explode('\\', $className);
    if (count($tmp) > 1) {
        $className = sprintf('<abbr title="%s">%s</abbr>', $className, array_pop($tmp));
    }
    return $className;
}

API Navigation

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