Skip to content
Snippets Groups Projects

Resolve #3490037 "Min drupal 10.3"

29 unresolved threads
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
<?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