public function TextProcessed::setParent

Implements ContextAwareInterface::setParent().

Overrides ContextAwareInterface::setParent

File

drupal/core/modules/field/modules/text/lib/Drupal/text/TextProcessed.php, line 88
Definition of Drupal\text\TextProcessed.

Class

TextProcessed
A computed property for processing text with a format.

Namespace

Drupal\text

Code

public function setParent($parent) {
  $this->parent = $parent;
  $this->text = $parent
    ->get($this->definition['settings']['text source']);
  $this->format = $parent
    ->get('format');
}