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

Breadcrumb

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

function JSXOpeningElement::setAttributes

Sets the attributes nodes array

Parameters

JSXAttribute[]|JSXSpreadAttribute[] $attributes Attributes nodes: array

Return value

$this

File

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

Class

JSXOpeningElement
A node that represents a JSX opening element tag.

Namespace

Peast\Syntax\Node\JSX

Code

public function setAttributes($attributes) {
    $this->assertArrayOf($attributes, array(
        "JSX\\JSXAttribute",
        "JSX\\JSXSpreadAttribute",
    ));
    $this->attributes = $attributes;
    return $this;
}

API Navigation

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