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

Breadcrumb

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

function Use_::as

Sets alias for used name.

Parameters

string $alias Alias to use (last component of full name by default):

Return value

$this The builder instance (for fluid interface)

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php, line 34

Class

Use_

Namespace

PhpParser\Builder

Code

public function as(string $alias) {
    $this->alias = $alias;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal