target; } /** * {@inheritdoc} */ public function getValue() { if ($target = $this->getTarget()) { return $target->getValue(); } } /** * {@inheritdoc} */ public function setValue($value, $notify = TRUE) { $this->target = $this->getTypedDataManager()->create($this->definition->getTargetDefinition(), $value); // Notify the parent of any changes. if ($notify && isset($this->parent)) { $this->parent->onChange($this->name); } } /** * {@inheritdoc} */ public function getString() { if (!method_exists($this, 'getType')) { throw new \BadMethodCallException(get_class($this) . '::getType() not implemented'); } return (string) $this->getType() . ':' . $this->getTargetIdentifier(); } }