Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lincoln-chawora/b87bad4422369c25fe8814af77e9b898 to your computer and use it in GitHub Desktop.
Save lincoln-chawora/b87bad4422369c25fe8814af77e9b898 to your computer and use it in GitHub Desktop.
How to get paragraphs ID from inside a field template using a field preprocessor
$field['#object']->entity_id();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment