Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / token / tests / modules / token_module_test / token_module_test.module
index c26332075989730216dabef5f4696f63b0ab63db..c022b6575c9efb5034e44452063d9400d692fd55 100644 (file)
@@ -4,14 +4,15 @@
  * @file
  * Helper module for token tests.
  */
+
 use Drupal\node\NodeInterface;
 
 /**
  * Implements hook_page_attachments().
  */
 function token_module_test_page_attachments() {
-  if ($debug = \Drupal::state()->get('token_page_tokens', array())) {
-    $debug += array('tokens' => array(), 'data' => array(), 'options' => array());
+  if ($debug = \Drupal::state()->get('token_page_tokens', [])) {
+    $debug += ['tokens' => [], 'data' => [], 'options' => []];
     foreach (array_keys($debug['tokens']) as $token) {
       $debug['values'][$token] = \Drupal::token()->replace($token, $debug['data'], $debug['options']);
     }