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

Breadcrumb

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

function Node::hasAttribute

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

Returns whether an attribute exists.

1 method overrides Node::hasAttribute()
NodeAbstract::hasAttribute in vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php
Returns whether an attribute exists.

File

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

Class

Node

Namespace

PhpParser

Code

public function hasAttribute(string $key) : bool;
RSS feed
Powered by Drupal