Implements \Drupal\Core\TypedData\ComplexDataInterface::set().
Overrides ComplexDataInterface::set
public function set($property_name, $value, $notify = TRUE) {
// Notify the parent of any changes to be made.
if ($notify && isset($this->parent)) {
$this->parent
->onChange($this->name);
}
if ($this
->getPropertyDefinition($property_name)) {
$this
->get($property_name)
->setValue($value);
}
else {
// Just set the plain value, which allows adding a new entry to the map.
$this->values[$property_name] = $value;
}
}