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

Breadcrumb

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

function JSXAttribute::setName

Sets the attribute name

Parameters

JSXIdentifier|JSXNamespacedName $name Attribute name:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/JSX/JSXAttribute.php, line 62

Class

JSXAttribute
A node that represents a JSX attribute.

Namespace

Peast\Syntax\Node\JSX

Code

public function setName($name) {
    $this->assertType($name, array(
        "JSX\\JSXIdentifier",
        "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