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

Breadcrumb

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

function JSXBoundaryElement::setName

Sets the element name

Parameters

JSXIdentifier|JSXMemberExpression|JSXNamespacedName $name Element: name

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/JSX/JSXBoundaryElement.php, line 57

Class

JSXBoundaryElement
A base class for boundary elements.

Namespace

Peast\Syntax\Node\JSX

Code

public function setName($name) {
    $this->assertType($name, array(
        "JSX\\JSXIdentifier",
        "JSX\\JSXMemberExpression",
        "JSX\\JSXNamespacedName",
    ));
    $this->name = $name;
    return $this;
}

API Navigation

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