public function proceedEditForm(UI\Form $form, Items\Base $itemContainer, $field, $contentName) { $values = $form->getValues(TRUE); $itemContainer->update($values[$field]); $this->logObject($itemContainer->getUpdated(), $contentName); return TRUE; }
public function update($data) { $oldData = $this->rawData; parent::update($data); if ($this->isUpdated) { $this->updated = is_null($oldData) ? self::EMPTY_VALUE : $oldData; } }