Results

06.02.2020
panopoly_media 8.x-2.x-dev :: src/Form/FileDeleteMultiple.php
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
    if ($form_state->getValue('confirm') && !empty($this->fileInfo)) {
      $count = 0;
      $files = $this->storage->loadMultiple($this->fileInfo);

      foreach ($this->fileInfo as $fid) {
        if (empty($files[$fid])) {
          break;
02.07.2020
redirect 8.x-1.x-dev :: src/Form/RedirectDeleteMultipleForm.php
  public function submitForm(array &$form, FormStateInterface $form_state) {

    if ($form_state->getValue('confirm') && !empty($this->redirects)) {
      $this->redirectStorage->delete($this->redirects);
      $this->privateTempStoreFactory->get('redirect_multiple_delete_confirm')->delete($this->currentUser->id());
      $count = count($this->redirects);
      $this->logger('redirect')->notice('Deleted @count redirects.', ['@count' => $count]);
      $this->messenger()->addMessage($this->stringTranslation->formatPlural($count, 'Deleted 1 redirect.', 'Deleted @count redirects.'));
    }
30.05.2023
resend_register_mail 1.0.0 :: src/Form/UserMultipleResendEmail.php
    // Clear out the accounts from the temp store.
    $this->tempStoreFactory->get('user_user_operations_resend_email')->delete($current_user_id);
    if ($form_state->getValue('confirm')) {
      $email_type = $form_state->getValue('message_type');
      foreach ($form_state->getValue('accounts') as $uid => $value) {
        $account = $this->userStorage->load($uid);
        if ($account && !empty($account->getEmail())) {
          _user_mail_notify($email_type, $account);
        }
21.10.2020
signageos 2.3.x-dev :: src/Form/PowerAction.php
  public function submitForm(array &$form, FormStateInterface $form_state): void {
    parent::submitForm($form, $form_state);
    if ($form_state->getValue('confirm')) {
      foreach ($this->devices as $device) {
        $plugin = $device->getPlugin();
        if (!($plugin instanceof SignageOs)) {
          continue;
        }
        $plugin->sendPowerAction($device, $form_state->getValue('action'));
25.02.2020
sms_rangine 8.x-1.2 :: src/Plugin/SmsGateway/RangineGateway.php
    $this->configuration['pass'] = trim($form_state->getValue('pass'));
    $this->configuration['sender'] = trim($form_state->getValue('sender'));
    $this->configuration['confirm'] = trim($form_state->getValue('confirm'));
    $this->configuration['host'] = trim($form_state->getValue('host'));
    $this->configuration['debug'] = trim($form_state->getValue('debug'));
  }

  /**
   * {@inheritdoc}
15.04.2023
support 2.0.x-dev :: modules/support_ticket/src/Form/DeleteMultiple.php
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
    if ($form_state->getValue('confirm') && !empty($this->supportTicketInfo)) {
      $total_count = 0;
      $delete_support_tickets = [];
      /** @var \Drupal\Core\Entity\ContentEntityInterface[][] $delete_translations */
      $delete_translations = [];
      /** @var \Drupal\support_ticket\SupportTicketInterface[] $support_tickets */
      $support_tickets = $this->storage->loadMultiple(array_keys($this->supportTicketInfo));
25.08.2020
tmgmt_extension_suit 8.x-3.4 :: src/Form/BaseTmgmtActionApproveForm.php
    $this->tempStoreFactory->get($temp_storage_name)
      ->delete($current_user_id);
    if (!$form_state->getValue('confirm')) {
      return;
    }

    // @TODO: change this when we add the support for queues.
    $is_batch = TRUE;
    $operations = [];
25.08.2020
tmgmt_smartling 8.x-4.11 :: src/Form/SendContextActionApproveForm.php
    $this->tempStoreFactory->get($temp_storage_name)
      ->delete($current_user_id);
    if (!$form_state->getValue('confirm')) {
      return;
    }

    //@todo:change this when we add the support for queues.
    $is_batch = TRUE;
    $operations = [];
25.08.2020
tmgmt_smartling 8.x-4.11 :: src/Form/DownloadByJobItemsTmgmtActionApproveForm.php
    $this->tempStoreFactory->get($temp_storage_name)->delete($current_user_id);

    if (!$form_state->getValue('confirm')) {
      return;
    }

    $operations = [];

    foreach ($this->entityIds as $id => $entity_type) {

Pages

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc