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

Breadcrumb

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

function NodeAbstract::getAttribute

Overrides Node::getAttribute

File

vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php, line 159

Class

NodeAbstract

Namespace

PhpParser

Code

public function getAttribute(string $key, $default = null) {
    if (array_key_exists($key, $this->attributes)) {
        return $this->attributes[$key];
    }
    return $default;
}

API Navigation

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