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

Breadcrumb

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

function Function_::setBody

Sets function body

Parameters

BlockStatement $body Function body:

Return value

$this

1 method overrides Function_::setBody()
ArrowFunctionExpression::setBody in vendor/mck89/peast/lib/Peast/Syntax/Node/ArrowFunctionExpression.php
Sets the function body

File

vendor/mck89/peast/lib/Peast/Syntax/Node/Function_.php, line 132

Class

Function_
Abstract class for functions.

Namespace

Peast\Syntax\Node

Code

public function setBody($body) {
    $this->assertType($body, "BlockStatement");
    $this->body = $body;
    return $this;
}

API Navigation

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