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

Breadcrumb

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

function List_::__construct

Same name in this branch
  1. 11.1.x vendor/phpdocumentor/type-resolver/src/PseudoTypes/List_.php \phpDocumentor\Reflection\PseudoTypes\List_::__construct()

Constructs a list() destructuring node.

Parameters

(ArrayItem|null)[] $items List of items to assign to:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php, line 22

Class

List_

Namespace

PhpParser\Node\Expr

Code

public function __construct(array $items, array $attributes = []) {
    $this->attributes = $attributes;
    $this->items = $items;
}
RSS feed
Powered by Drupal