From d3e88312a16cb9ebe2568d87e3149e62698c1714 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 20 Feb 2014 16:44:31 +1300 Subject: [PATCH] Add Drupal 8 UF classes --- CRM/Core/Permission/Drupal8.php | 41 ++++++++++++++++++++++ CRM/Utils/Hook/Drupal8.php | 37 ++++++++++++++++++++ CRM/Utils/System/Drupal8.php | 60 +++++++++++++++++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 CRM/Core/Permission/Drupal8.php create mode 100644 CRM/Utils/Hook/Drupal8.php create mode 100644 CRM/Utils/System/Drupal8.php diff --git a/CRM/Core/Permission/Drupal8.php b/CRM/Core/Permission/Drupal8.php new file mode 100644 index 0000000000..6155b58276 --- /dev/null +++ b/CRM/Core/Permission/Drupal8.php @@ -0,0 +1,41 @@ +userFrameworkBaseURL; + //@todo this is not the right way to get the url in d8 + $loginURL .= 'user'; + if (!empty($destination)) { + // append destination so user is returned to form they came from after login + $loginURL .= '?destination=' . urlencode($destination); + } + return $loginURL; + } + +} \ No newline at end of file -- 2.25.1