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

Breadcrumb

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

function StringLiteral::setValue

Sets node's value

Parameters

string $value Value:

Return value

$this

Overrides Literal::setValue

File

vendor/mck89/peast/lib/Peast/Syntax/Node/StringLiteral.php, line 55

Class

StringLiteral
A node that represents a string literal.

Namespace

Peast\Syntax\Node

Code

public function setValue($value) {
    $this->value = (string) $value;
    
    //Force recalculation of the raw value
    return $this->setFormat($this->format);
}

API Navigation

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