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

Breadcrumb

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

function String_::__construct

Constructs a string scalar node.

Parameters

string $value Value of the string:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php, line 36

Class

String_

Namespace

PhpParser\Node\Scalar

Code

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

API Navigation

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