diff --git a/deploy.info.yml b/deploy.info.yml index 25bbe7b..bfcf335 100644 --- a/deploy.info.yml +++ b/deploy.info.yml @@ -1,6 +1,6 @@ name: Deploy type: module description: ' Allows content to be deployed between servers. Either to be used as a content staging solution or to deploy content across a cluster of different sites.' -core: 8.x +core_version_requirement: ^8 || ^9 dependencies: - workspace:workspace diff --git a/src/Entity/Form/ReplicationForm.php b/src/Entity/Form/ReplicationForm.php old mode 100644 new mode 100755 index 570901f..87dad2a --- a/src/Entity/Form/ReplicationForm.php +++ b/src/Entity/Form/ReplicationForm.php @@ -186,7 +186,7 @@ class ReplicationForm extends ContentEntityForm { ); if (($response instanceof ReplicationLogInterface) && ($response->get('ok')->value == TRUE)) { - $this->entity->set('replicated', REQUEST_TIME)->save(); + $this->entity->set('replicated', \Drupal::time()->getRequestTime())->save(); $this->messenger()->addMessage($this->t('Deployment queued, refresh this page and check the status below. It might take a few minutes to complete.')); if ($form_state->hasValue('archive') && $form_state->getValue('archive') == TRUE) { diff --git a/src/Form/ReplicationActionForm.php b/src/Form/ReplicationActionForm.php old mode 100644 new mode 100755 index b1a6c4f..683545c --- a/src/Form/ReplicationActionForm.php +++ b/src/Form/ReplicationActionForm.php @@ -193,7 +193,7 @@ class ReplicationActionForm extends FormBase { $entity->get('target')->entity ); if (($response instanceof ReplicationLogInterface) && ($response->get('ok')->value == TRUE)) { - $entity->set('replicated', REQUEST_TIME)->save(); + $entity->set('replicated', \Drupal::time()->getRequestTime())->save(); $this->messenger()->addMessage('Successful deployment.'); } else {