Pimcore\Model\Object\ClassDefinition\Data::getDiffDataFromEditmode PHP Method

getDiffDataFromEditmode() public method

Converts the data sent from the object merger plugin back to the internal object. Similar to getDiffDataForEditMode() an array of data elements is passed in containing the following attributes: - "field" => the name of (this) field - "key" => the key of the data element - "data" => the data
public getDiffDataFromEditmode ( $data, null $object = null, mixed $params = [] ) : mixed
$data
$object null
$params mixed
return mixed
    public function getDiffDataFromEditmode($data, $object = null, $params = [])
    {
        $thedata = $this->getDataFromEditmode($data[0]["data"], $object, $params);
        return $thedata;
    }

Usage Example

 /**
  * @param $data
  * @param null $object
  * @return mixed
  */
 public function getDiffDataFromEditmode($data, $object = null)
 {
     $result = parent::getDiffDataFromEditmode($data, $object);
     \Logger::debug("bla");
     return $result;
 }