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

Breadcrumb

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

function JSXOpeningElement::setSelfClosing

Sets the self closing tag mode

Parameters

bool $selfClosing Self closing tag mode:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/JSX/JSXOpeningElement.php, line 87

Class

JSXOpeningElement
A node that represents a JSX opening element tag.

Namespace

Peast\Syntax\Node\JSX

Code

public function setSelfClosing($selfClosing) {
    $this->selfClosing = (bool) $selfClosing;
    return $this;
}
RSS feed
Powered by Drupal