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

Breadcrumb

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

function JSXText::setValue

Sets node's value

Parameters

mixed $value Value:

Return value

$this

1 call to JSXText::setValue()
JSXText::setRaw in vendor/mck89/peast/lib/Peast/Syntax/Node/JSX/JSXText.php
Sets node's raw value

File

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

Class

JSXText
A node that represents a JSX closing fragment tag.

Namespace

Peast\Syntax\Node\JSX

Code

public function setValue($value) {
    $this->value = $value;
    $this->raw = $value;
    return $this;
}

API Navigation

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