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

Breadcrumb

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

function Name::getParts

Get parts of name (split by the namespace separator).

@psalm-return non-empty-list<string>

Return value

string[] Parts of name

File

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

Class

Name

Namespace

PhpParser\Node

Code

public function getParts() : array {
    return \explode('\\', $this->name);
}
RSS feed
Powered by Drupal