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

Breadcrumb

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

function UseStatement::normalizedNameAsReferencedInFile

2 calls to UseStatement::normalizedNameAsReferencedInFile()
UseStatement::getUniqueId in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/UseStatement.php
UseStatement::__construct in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/UseStatement.php

File

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

Class

UseStatement
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function normalizedNameAsReferencedInFile(string $type, string $name) : string {
    if ($type === self::TYPE_CONSTANT) {
        return $name;
    }
    return strtolower($name);
}

API Navigation

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