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

Breadcrumb

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

function Trait_::getNode

Returns the built trait node.

Return value

Stmt\Trait_ The built interface node

Overrides Builder::getNode

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php, line 75

Class

Trait_

Namespace

PhpParser\Builder

Code

public function getNode() : PhpParser\Node {
    return new Stmt\Trait_($this->name, [
        'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
        'attrGroups' => $this->attributeGroups,
    ], $this->attributes);
}

API Navigation

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