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

Breadcrumb

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

function Name::toString

Returns a string representation of the name itself, without taking the name type into account (e.g., not including a leading backslash for fully qualified names).

@psalm-return non-empty-string

Return value

string String representation

3 calls to Name::toString()
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.
Name::toCodeString in vendor/nikic/php-parser/lib/PhpParser/Node/Name.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 113

Class

Name

Namespace

PhpParser\Node

Code

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