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

Breadcrumb

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

function Identifier::isSpecialClassName

Checks whether the identifier is a special class name (self, parent or static).

Return value

bool Whether identifier is a special class name

File

vendor/nikic/php-parser/lib/PhpParser/Node/Identifier.php, line 68

Class

Identifier
Represents a non-namespaced name. Namespaced names are represented using Name nodes.

Namespace

PhpParser\Node

Code

public function isSpecialClassName() : bool {
    return isset(self::$specialClassNames[strtolower($this->name)]);
}
RSS feed
Powered by Drupal