Timeline for Load id of paragraph in hook_preprocess_layout using load($id) method
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 3, 2020 at 16:34 | vote | accept | Jeff W Petersen | ||
Mar 18, 2020 at 20:52 | answer | added | Jeff W Petersen | timeline score: 0 | |
Mar 18, 2020 at 5:50 | comment | added | Beau |
All entities support the id() method. So, try $variables['content']['#paragraph']->id(); . See api.drupal.org/api/drupal/….
|
|
Mar 12, 2020 at 20:30 | history | asked | Jeff W Petersen | CC BY-SA 4.0 |