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

Breadcrumb

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

function UseStatement::getUniqueId

5 calls to UseStatement::getUniqueId()
AbstractFullyQualifiedGlobalReference::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/AbstractFullyQualifiedGlobalReference.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
FullyQualifiedExceptionsSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedExceptionsSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
NamespaceHelper::resolveName in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/NamespaceHelper.php
ReferenceUsedNamesOnlySniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/ReferenceUsedNamesOnlySniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
UnusedUsesSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/UnusedUsesSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/UseStatement.php, line 102

Class

UseStatement
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function getUniqueId(string $type, string $name) : string {
    $normalizedName = self::normalizedNameAsReferencedInFile($type, $name);
    if ($type === self::TYPE_CLASS) {
        return $normalizedName;
    }
    return sprintf('%s %s', $type, $normalizedName);
}

API Navigation

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