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

Breadcrumb

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

function Error::__construct

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Error.php \PhpParser\Error::__construct()
  2. 11.1.x vendor/twig/twig/src/Error/Error.php \Twig\Error\Error::__construct()

Constructs an error node.

Parameters

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php, line 19

Class

Error
Error node used during parsing with error recovery.

Namespace

PhpParser\Node\Expr

Code

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

API Navigation

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