function TextProcessed::setValue

Same name in other branches
  1. 8.9.x core/modules/text/src/TextProcessed.php \Drupal\text\TextProcessed::setValue()
  2. 10 core/modules/text/src/TextProcessed.php \Drupal\text\TextProcessed::setValue()
  3. 11.x core/modules/text/src/TextProcessed.php \Drupal\text\TextProcessed::setValue()

Overrides TypedData::setValue

File

core/modules/text/src/TextProcessed.php, line 71

Class

TextProcessed
A computed property for processing text with a format.

Namespace

Drupal\text

Code

public function setValue($value, $notify = TRUE) {
    $this->processed = $value;
    // Notify the parent of any changes.
    if ($notify && isset($this->parent)) {
        $this->parent
            ->onChange($this->name);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.