Log the status updated event
@param array $submitted
18163
protected function logUpdateStatusOrder(array $submitted)
    {
        if ($this->data_order['status'] != $submitted['status']) {

            $log = array(
                'user_id' => $this->uid,
                'order_id' => $this->data_order['order_id'],
                'text' => $this->text('Update order status to @status', array('@status' => $submitted['status']))
            );

            $this->order_history->add($log);
        }
    }
2254
public function logProcessFailed(ProcessId $processId, \DateTimeImmutable $finishedAt)
    {
        $data = [
            'finished_at' => $finishedAt->format(\DateTime::ISO8601),
            'status' => self::STATUS_FAILED,
        ];

        $entry = $this->loadProcessEntryIfExists($processId);

        if (is_null($entry)) {
            $this->insertNewEntry($processId, $data);
        } else {
            $this->updateEntry($processId, $data);
        }
    }
532339
public function onPostUpdateCmd(Event $event)
    {
        $this->bridgeFactory->createBridge($event->getIO())
            ->update($event->getComposer());
    }
756593
public function logNotificationInput($paramsArray) {
    $this->writeLog(sprintf($this->debugStrings['notifyInput'], date('Y-m-d H:i:s'), print_r($paramsArray, 1)));
  }
273703
function _process_submission($method) {
        $submission = array();
        if (!empty($this->_ajaxformdata)) {
            $submission = $this->_ajaxformdata;
        } else if ($method == 'post') {
            if (!empty($_POST)) {
                $submission = $_POST;
            }
        } else {
            $submission = $_GET;
            merge_query_params($submission, $_POST); // Emulate handling of parameters in xxxx_param().
        }

        // following trick is needed to enable proper sesskey checks when using GET forms
        // the _qf__.$this->_formname serves as a marker that form was actually submitted
        if (array_key_exists('_qf__'.$this->_formname, $submission) and $submission['_qf__'.$this->_formname] == 1) {
            if (!confirm_sesskey()) {
                print_error('invalidsesskey');
            }
            $files = $_FILES;
        } else {
            $submission = array();
            $files = array();
        }
        $this->detectMissingSetType();

        $this->_form->updateSubmission($submission, $files);
    }
132050
protected function submitEditReview()
    {
        if ($this->isPosted('delete')) {
            $this->deleteReview();
        } else if ($this->isPosted('save') && $this->validateEditReview()) {
            if (isset($this->data_review['review_id'])) {
                $this->updateReview();
            } else {
                $this->addReview();
            }
        }
    }
179749
public function validateUpload(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateLimitsUpload();
        $this->validateFileUpload();

        return $this->getResult();
    }
144351
protected function submitAddTrigger()
    {
        $this->setSubmitted(null, $this->getParam());
        $this->setSubmitted('data.conditions', $this->getSubmitted('conditions'));
        $this->setSubmittedList('data.conditions');

        $this->validateComponent('trigger');
        $this->addTrigger();
    }
271110
public function onPreSubmit(FormEvent $event)
    {
        $contentInfo = null;
        $contentLanguages = [];
        $form = $event->getForm();
        $data = $event->getData();

        if (isset($data['location'])) {
            try {
                $location = $this->locationService->loadLocation($data['location']);
            } catch (NotFoundException $e) {
                $location = null;
            }

            if (null !== $location) {
                $contentInfo = $location->getContentInfo();
                $versionInfo = $this->contentService->loadVersionInfo($contentInfo);
                $contentLanguages = $versionInfo->languageCodes;
            }
        }

        $this->addLanguageFields($form, $contentLanguages, $contentInfo);
    }
894372
public function field(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateField();
        $this->validateTitle();
        $this->validateWeight();
        $this->validateTranslation();
        $this->validateTypeField();
        $this->validateWidgetField();

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
171874
private static void logResponse(StatusUpdate response) {
		String text = response.getStatus();
		String message = String.format(MESSAGE_RESPONSE, text);
		System.out.println(message);
	}
1314653
protected function submitAddState()
    {
        $this->setSubmitted(null, $this->getParam());
        $this->validateComponent('state');
        $this->addState();
    }
827300
public function userRole(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateUserRole();
        $this->validatePermissionsUserRole();
        $this->validateRedirectUserRole();
        $this->validateBool('status');
        $this->validateName();

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
460499
public function page(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validatePage();
        $this->validateBool('status');
        $this->validateBool('blog_post');
        $this->validateTitle();
        $this->validateDescriptionPage();
        $this->validateMetaTitle();
        $this->validateMetaDescription();
        $this->validateTranslation();
        $this->validateStoreId();
        $this->validateCategoryPage();
        $this->validateUserId(false);
        $this->validateImages();
        $this->validateAlias();
        $this->validateUploadImages('page');

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
176489
protected function validateEditDashboard()
    {
        $submitted = $this->setSubmitted('dashboard');

        foreach ($submitted as &$item) {
            $item['status'] = !empty($item['status']);
            $item['weight'] = intval($item['weight']);
        }

        $this->setSubmitted(null, $submitted);
    }
127184
public function submitForm(array &$form, FormStateInterface $form_state) {
    try {
      $this->api->purgeQueue();
      $this->messenger()->addStatus($this->t('Queue was purged'));
    }
    catch (\Exception $e) {
      $this->messenger()->addError($e->getMessage());
    }
  }
759776
public function fieldValue(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateFieldValue();
        $this->validateTitle();
        $this->validateWeight();
        $this->validateTranslation();
        $this->validateFieldFieldValue();
        $this->validateColorFieldValue();
        $this->validateUploadImages('field_value');

        $this->unsetSubmitted('update');
        $this->unsetSubmitted('field');

        return $this->getResult();
    }