You are here

public function ProfilerExtension::getAbbr in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::getAbbr()
  2. 8.2 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::getAbbr()
  3. 4.x webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::getAbbr()

Parameters

$class:

Return value

string

File

webprofiler/src/Twig/Extension/ProfilerExtension.php, line 80

Class

ProfilerExtension
Class ProfilerExtension

Namespace

Drupal\webprofiler\Twig\Extension

Code

public function getAbbr($class) {
  return $this->classShortener
    ->shortenClass($class);
}