getObject(); $type = $customer->hasData(Collection::EAV_CODE_PASSWORD_HASH) ? LogEntryTypes::TYPE_EDIT : LogEntryTypes::TYPE_NEW; return [ LogEntry::TYPE => $type, LogEntry::ITEM => $customer->getName(), LogEntry::CATEGORY => self::CATEGORY, LogEntry::CATEGORY_NAME => __('Customer'), LogEntry::ELEMENT_ID => (int)$customer->getId(), LogEntry::STORE_ID => Store::DEFAULT_STORE_ID, ]; } public function processBeforeSave($object): array { return $this->filterObjectData((array)$object->getOrigData()); } }