Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
easy_google_analytics_counter
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
easy_google_analytics_counter
Commits
fa84d68c
Commit
fa84d68c
authored
2 months ago
by
József Dudás
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3513638
by szantog: D11 compatibility
parent
947323d2
Branches
3.x
Tags
3.0.1
1 merge request
!4
Issue #3513638 by szantog: D11 compatibility
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
easy_google_analytics_counter.info.yml
+1
-1
1 addition, 1 deletion
easy_google_analytics_counter.info.yml
easy_google_analytics_counter.services.yml
+2
-1
2 additions, 1 deletion
easy_google_analytics_counter.services.yml
src/ConnectionService.php
+6
-5
6 additions, 5 deletions
src/ConnectionService.php
with
9 additions
and
7 deletions
easy_google_analytics_counter.info.yml
+
1
−
1
View file @
fa84d68c
name
:
'
Easy
Google
Analytics
Counter'
type
:
module
description
:
'
This
is
the
easy
analytics
counter
module.'
core_version_requirement
:
^9 || ^10
core_version_requirement
:
^9 || ^10
|| ^11
configure
:
easy_google_analytics_counter.admin_form
package
:
'
Custom'
This diff is collapsed.
Click to expand it.
easy_google_analytics_counter.services.yml
+
2
−
1
View file @
fa84d68c
services
:
easy_google_analytics_counter.connection
:
parent
:
container.trait
class
:
Drupal\easy_google_analytics_counter\ConnectionService
arguments
:
-
'
@service_container'
This diff is collapsed.
Click to expand it.
src/ConnectionService.php
+
6
−
5
View file @
fa84d68c
...
...
@@ -5,8 +5,6 @@ namespace Drupal\easy_google_analytics_counter;
use
Drupal\Core\Config\ImmutableConfig
;
use
Drupal\Core\Extension\ModuleHandlerInterface
;
use
Drupal\Core\Logger\LoggerChannelFactoryInterface
;
use
Symfony\Component\DependencyInjection\ContainerAwareInterface
;
use
Symfony\Component\DependencyInjection\ContainerAwareTrait
;
// --------- Use from google analytics library ----------.
use
Google\Analytics\Data\V1beta\BetaAnalyticsDataClient
;
...
...
@@ -17,14 +15,17 @@ use Google\Analytics\Data\V1beta\FilterExpression;
use
Google\Analytics\Data\V1beta\Metric
;
use
Google\Analytics\Data\V1beta\OrderBy
;
use
Google\Analytics\Data\V1beta\RunReportResponse
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
/**
* Class ConnectionService for Google data api.
*/
class
ConnectionService
implements
ContainerAwareInterface
,
ConnectionServiceInterface
{
class
ConnectionService
implements
ConnectionServiceInterface
{
use
ContainerAwareTrait
;
public
function
__construct
(
protected
readonly
ContainerInterface
$container
,
)
{
}
/**
* Drupal\Core\Config\ImmutableConfig definition.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment