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

Breadcrumb

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

function Node::setAttribute

Same name in this branch
  1. 11.1.x vendor/phpstan/phpdoc-parser/src/Ast/Node.php \PHPStan\PhpDocParser\Ast\Node::setAttribute()
  2. 11.1.x vendor/twig/twig/src/Node/Node.php \Twig\Node\Node::setAttribute()

Sets an attribute on a node.

Parameters

mixed $value:

1 method overrides Node::setAttribute()
NodeAbstract::setAttribute in vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php
Sets an attribute on a node.

File

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

Class

Node

Namespace

PhpParser

Code

public function setAttribute(string $key, $value) : void;
RSS feed
Powered by Drupal