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

Breadcrumb

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

function Variable::__construct

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Value/Variable.php \PHPUnit\TextUI\Configuration\Variable::__construct()
  2. 11.1.x vendor/symfony/dependency-injection/Variable.php \Symfony\Component\DependencyInjection\Variable::__construct()
  3. 11.1.x core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::__construct()

Constructs a variable node.

Parameters

string|Expr $name Name:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php, line 17

Class

Variable

Namespace

PhpParser\Node\Expr

Code

public function __construct($name, array $attributes = []) {
    $this->attributes = $attributes;
    $this->name = $name;
}

API Navigation

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