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

Breadcrumb

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

function Name::isUnqualified

Checks whether the name is unqualified. (E.g. Name)

Return value

bool Whether the name is unqualified

2 methods override Name::isUnqualified()
FullyQualified::isUnqualified in vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php
Checks whether the name is unqualified. (E.g. Name)
Relative::isUnqualified in vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php
Checks whether the name is unqualified. (E.g. Name)

File

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

Class

Name

Namespace

PhpParser\Node

Code

public function isUnqualified() : bool {
    return false === \strpos($this->name, '\\');
}
RSS feed
Powered by Drupal