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

Breadcrumb

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

function JSXElement::setClosingElement

Sets the closing element node

Parameters

JSXClosingElement|null $closingElement Closing element node:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/JSX/JSXElement.php, line 121

Class

JSXElement
A node that represents a JSX element.

Namespace

Peast\Syntax\Node\JSX

Code

public function setClosingElement($closingElement) {
    $this->assertType($closingElement, "JSX\\JSXClosingElement", true);
    $this->closingElement = $closingElement;
    return $this;
}
RSS feed
Powered by Drupal