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

Breadcrumb

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

function GroupUse::__construct

Constructs a group use node.

Parameters

Name $prefix Prefix for uses:

UseItem[] $uses Uses:

Use_::TYPE_* $type Type of group use:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php, line 27

Class

GroupUse

Namespace

PhpParser\Node\Stmt

Code

public function __construct(Name $prefix, array $uses, int $type = Use_::TYPE_NORMAL, array $attributes = []) {
    $this->attributes = $attributes;
    $this->type = $type;
    $this->prefix = $prefix;
    $this->uses = $uses;
}

API Navigation

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