getSetting('text source') === NULL) { throw new \InvalidArgumentException("The definition's 'text source' key has to specify the name of the text property to be processed."); } } /** * {@inheritdoc} */ public function getValue() { if ($this->processed !== NULL) { return $this->processed; } $item = $this->getParent(); $text = $item->{($this->definition->getSetting('text source'))}; // Avoid running check_markup() on empty strings. if (!isset($text) || $text === '') { $this->processed = ''; } else { $this->processed = check_markup($text, $item->format, $item->getLangcode()); } return $this->processed; } /** * {@inheritdoc} */ 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); } } }