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

Breadcrumb

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

function NamespaceHelper::findCurrentNamespaceName

7 calls to NamespaceHelper::findCurrentNamespaceName()
ClassHelper::getFullyQualifiedName in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ClassHelper.php
ConstantHelper::getFullyQualifiedName in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ConstantHelper.php
FunctionHelper::getFullyQualifiedName in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/FunctionHelper.php
NamespaceHelper::resolveName in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/NamespaceHelper.php
OptimizedFunctionsWithoutUnpackingSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/PHP/OptimizedFunctionsWithoutUnpackingSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *

... See full list

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/NamespaceHelper.php, line 123

Class

NamespaceHelper
Terms "unqualified", "qualified" and "fully qualified" have the same meaning as described here: http://php.net/manual/en/language.namespaces.rules.php

Namespace

SlevomatCodingStandard\Helpers

Code

public static function findCurrentNamespaceName(File $phpcsFile, int $anyPointer) : ?string {
    $namespacePointer = self::findCurrentNamespacePointer($phpcsFile, $anyPointer);
    if ($namespacePointer === null) {
        return null;
    }
    return self::getName($phpcsFile, $namespacePointer);
}

API Navigation

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