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

Breadcrumb

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

function Node::getAttribute

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

Returns the value of an attribute.

Parameters

mixed $default:

Return value

mixed

1 method overrides Node::getAttribute()
NodeAbstract::getAttribute in vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php
Returns the value of an attribute.

File

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

Class

Node

Namespace

PhpParser

Code

public function getAttribute(string $key, $default = null);
RSS feed
Powered by Drupal