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

Breadcrumb

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

function Attribute::__construct

Same name in this branch
  1. 11.1.x vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Attribute.php \SlevomatCodingStandard\Helpers\Attribute::__construct()
  2. 11.1.x core/lib/Drupal/Core/Template/Attribute.php \Drupal\Core\Template\Attribute::__construct()

Parameters

Node\Name $name Attribute name:

list<Arg> $args Attribute arguments:

array<string, mixed> $attributes Additional node attributes:

Overrides NodeAbstract::__construct

File

vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php, line 20

Class

Attribute

Namespace

PhpParser\Node

Code

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

API Navigation

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