How to get token of parent entity in paragraph? I have a paragraph, which is referenced by a node. Now I am trying to pass field values of node to the paragraph using tokens. I'm only aware of [paragraph:parent_id] and [paragraph:parent_type] but don't know how to get specific field values.

What I've tried so far without success:
[node:field_foo:value]
[paragraph:field_foo:value]
[paragraph:node:field_foo:value]
[paragraph:parent:field_foo:value]
[paragraph:parent:entity:field_foo:value]

The list of available tokens does not contain parent tokens. Is it even possible to get token of the parent entity? And if so, how?
There's nothing out of the box (see this issue for the details). Implementing your own token isn't too tricky.

I haven't had a chance to test this but I'm pretty sure it'll work:

function MODULE_token_info_alter(&amp;$info) {
  $info['tokens']['paragraph']['parent_entity'] = [
    'name' =&gt; 'Parent entity',
    'description' =&gt; 'Parent entity of the paragraph',
  ];
}

function MODULE_tokens($type, $tokens, array $data, array $options, \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata) {
  $replacements = [];

  if ($type == 'paragraph' &amp;&amp; $paragraph = $data['paragraph']) {
    $parent = $paragraph-&gt;getParentEntity();
    $bubbleable_metadata-&gt;addCacheableDependency($parent);

    foreach ($tokens as $name =&gt; $original) {
      if ($name == 'parent_entity') {
        $replacements[$original] = $parent-&gt;label();
      }
    }

    $token_service = \Drupal::token();
    if ($parent_entity_tokens = $token_service-&gt;findWithPrefix($tokens, 'parent_entity')) {
      $replacements += $token_service-&gt;generate($parent-&gt;getEntityTypeId(), $parent_entity_tokens, [$parent-&gt;getEntityTypeId() =&gt; $parent], $options, $bubbleable_metadata);
    }
  }

  return $replacements;
}