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

Breadcrumb

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

function ConstantHelper::getFullyQualifiedName

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ConstantHelper.php, line 28

Class

ConstantHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function getFullyQualifiedName(File $phpcsFile, int $constantPointer) : string {
    $name = self::getName($phpcsFile, $constantPointer);
    $namespace = NamespaceHelper::findCurrentNamespaceName($phpcsFile, $constantPointer);
    return $namespace !== null ? sprintf('%s%s%s%s', NamespaceHelper::NAMESPACE_SEPARATOR, $namespace, NamespaceHelper::NAMESPACE_SEPARATOR, $name) : $name;
}

API Navigation

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