You are here

public function PushNotificationsConfigForm::submitRegenerateCertificateString in Push Notifications 8

Regenerates the APNS random certificate string.

File

src/Form/PushNotificationsConfigForm.php, line 174

Class

PushNotificationsConfigForm
Class PushNotificationsConfigForm.

Namespace

Drupal\push_notifications\Form

Code

public function submitRegenerateCertificateString(array &$form, FormStateInterface $form_state) {
  push_notifications_set_random_certificate_string();
  drupal_set_message($this
    ->t('The names for your APNS certificates were successfully changed. Please rename both certificate files.'));
}