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

Breadcrumb

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

function Name::toCodeString

Returns a string representation of the name as it would occur in code (e.g., including leading backslash for fully qualified names.

@psalm-return non-empty-string

Return value

string String representation

2 methods override Name::toCodeString()
FullyQualified::toCodeString in vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php
Returns a string representation of the name as it would occur in code (e.g., including leading backslash for fully qualified names.
Relative::toCodeString in vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php
Returns a string representation of the name as it would occur in code (e.g., including leading backslash for fully qualified names.

File

vendor/nikic/php-parser/lib/PhpParser/Node/Name.php, line 124

Class

Name

Namespace

PhpParser\Node

Code

public function toCodeString() : string {
    return $this->toString();
}
RSS feed
Powered by Drupal