How to use custom tokens in view header Drupal 8 I make custom token which i use in view filter but now i want to use in view header.The custom token doesn't show in view header Global: Unfiltered text (Global: Unfiltered text) or how i make "Available global token replacements" to use in view header Global: Unfiltered text (Global: Unfiltered text). Thanks in advance.
One possible soliton is to simply when declaring your custom tokens in hook_token_info()

use $info['tokens']['view']

Ex: 

$info['tokens'] = [
    'view' =&gt; [
       'my-custom-token' =&gt; [
          'name' =&gt; t('Custom Token'),
          'description' =&gt; t('A custom token I created.'),
       ],
       // 'my-second-custom-token' =&gt; [...
    ],
];