paragraph template suggestion based on parent content type I have two content type using same paragraph as field , though template code will be according to content type. How can i can have different template names for paragraph template depending on content type.

Current naming convention: paragraph--paragraph-type.html.twig

Desired naming convention: paragraph--parent-content-type--paragraph-type.html.twig

Another solution will be get the url and pass it as variable in template and use template code according to url passed.
Add a theme name suggestion:

mytheme.theme:

/**
 * Implements hook_theme_suggestions_HOOK_alter().
 */
function mytheme_theme_suggestions_paragraph_alter(&amp;$suggestions, $variables) {
  $paragraph = $variables['elements']['#paragraph'];
  $parent = $paragraph-&gt;getParentEntity();
  if ($parent) {
    $suggestions[] = 'paragraph__' . $parent-&gt;bundle() . '__' .  $paragraph-&gt;bundle();
  }
}