Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
private_message
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
private_message
Merge requests
!155
Resolve
#3490037
"Min drupal 10.3"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3490037
"Min drupal 10.3"
issue/private_message-3490037:3490037-min-drupal-10.3
into
4.x
Overview
32
Commits
30
Pipelines
27
Changes
1
29 unresolved threads
Hide all comments
Merged
Claudiu Cristea
requested to merge
issue/private_message-3490037:3490037-min-drupal-10.3
into
4.x
3 months ago
Overview
32
Commits
30
Pipelines
27
Changes
1
29 unresolved threads
Hide all comments
Expand
Closes
#3490037
0
0
Merge request reports
Viewing commit
88e3d93f
Show latest version
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
88e3d93f
Strict type private_message.tokens.inc
· 88e3d93f
Claudiu Cristea
authored
3 months ago
private_message.tokens.inc
+
4
−
3
Options
<?php
declare
(
strict_types
=
1
);
/**
* @file
* Provides tokens for the Private Message module.
@@ -14,8 +16,7 @@ use Drupal\user\Entity\User;
/**
* Implements hook_token_info().
*/
function
private_message_token_info
()
{
function
private_message_token_info
():
array
{
// Defined the private message token type.
$private_message_type
=
[
'name'
=>
t
(
'Private Messages'
),
@@ -89,7 +90,7 @@ function private_message_token_info() {
/**
* Implements hook_tokens().
*/
function
private_message_tokens
(
$type
,
$tokens
,
array
$data
,
array
$options
,
BubbleableMetadata
$bubbleable_metadata
)
{
function
private_message_tokens
(
$type
,
$tokens
,
array
$data
,
array
$options
,
BubbleableMetadata
$bubbleable_metadata
)
:
array
{
$replacements
=
[];
$token_service
=
\Drupal
::
token
();
Loading