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

Breadcrumb

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

function UseItem::getAlias

Get alias. If not explicitly given this is the last component of the used name.

File

vendor/nikic/php-parser/lib/PhpParser/Node/UseItem.php, line 41

Class

UseItem

Namespace

PhpParser\Node

Code

public function getAlias() : Identifier {
    if (null !== $this->alias) {
        return $this->alias;
    }
    return new Identifier($this->name
        ->getLast());
}
RSS feed
Powered by Drupal