3 namespace Drupal\Core\TypedData;
6 * Base class for primitive data types.
8 abstract class PrimitiveBase extends TypedData implements PrimitiveInterface {
20 public function getValue() {
27 public function setValue($value, $notify = TRUE) {
28 $this->value = $value;
29 // Notify the parent of any changes.
30 if ($notify && isset($this->parent)) {
31 $this->parent->onChange($this->name);