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

Breadcrumb

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

function Function_::getNode

Returns the built function node.

Return value

Stmt\Function_ The built function node

Overrides Builder::getNode

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php, line 58

Class

Function_

Namespace

PhpParser\Builder

Code

public function getNode() : Node {
    return new Stmt\Function_($this->name, [
        'byRef' => $this->returnByRef,
        'params' => $this->params,
        'returnType' => $this->returnType,
        'stmts' => $this->stmts,
        '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