Skip to content
Snippets Groups Projects
Commit 554e09d2 authored by Duro Arezina's avatar Duro Arezina Committed by Nono Martinez
Browse files

Issue #3409146 by devad: Mobile Detect v4.0.x needs Ludwig integration update

parent 1242ee96
No related branches found
No related tags found
1 merge request!8Resolve #3421515 "Setup gitlab ci"
{
"require": {
"mobiledetect/mobiledetectlib": {
"version": "v4.8.04",
"version": "4.8.04",
"url": "https://github.com/serbanghita/Mobile-Detect/archive/4.8.04.zip"
},
"psr/simple-cache": {
"version": "3.0.0",
"url": "https://github.com/php-fig/simple-cache/archive/3.0.0.zip"
}
}
}
......@@ -15,12 +15,6 @@ use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Routing\RouteMatchInterface;
// Ludwig module integration.
if (\Drupal::hasService('ludwig.require_once')) {
$ludwig_require_once = \Drupal::service('ludwig.require_once');
$ludwig_require_once->requireOnce('mobiledetect/mobiledetectlib', 'Mobile_Detect.php', dirname(__FILE__));
}
/**
* Implements hook_help().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment