public function StaticReflectionService::getClassShortName

Return the shortname of a class.

Parameters

string $className:

Return value

string

Overrides ReflectionService::getClassShortName

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/StaticReflectionService.php, line 49

Class

StaticReflectionService
PHP Runtime Reflection Service

Namespace

Doctrine\Common\Persistence\Mapping

Code

public function getClassShortName($className) {
  if (strpos($className, '\\') !== false) {
    $className = substr($className, strrpos($className, "\\") + 1);
  }
  return $className;
}