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

Breadcrumb

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

function TemplateElement::setValue

Sets node's value

Parameters

mixed $value Value:

Return value

$this

1 call to TemplateElement::setValue()
TemplateElement::setRawValue in vendor/mck89/peast/lib/Peast/Syntax/Node/TemplateElement.php
Sets node's raw value that must be wrapped in templates quotes.

File

vendor/mck89/peast/lib/Peast/Syntax/Node/TemplateElement.php, line 71

Class

TemplateElement
A node that represents a template element. For example `foo` and `bar` in: `foo${exp}bar`

Namespace

Peast\Syntax\Node

Code

public function setValue($value) {
    $this->value = $value;
    $this->rawValue = Utils::quoteLiteralString($value, "`");
    return $this;
}

API Navigation

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