/** * Sets the properties on the source * @return void */ public function setSourceProperties() { $properties = $this->getProperty('properties'); if (!empty($properties)) { $properties = is_array($properties) ? $properties : $this->modx->fromJSON($properties); $this->object->setProperties($properties); } }