- Issue created by @sirishasingampalli
- 🇳🇿New Zealand quietone
@sirishasingampalli, as you can see by the lack of response the Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our Support page → . This is 'Get Support' at the top of Drupal.org. There is also information about Drupal Slack → , at 'Get Support -> Drupal Slack' also at the top of Drupal.org. You may get better replies in one of those places.
- 🇮🇳India r.shaikh Pune
Hello @Sirisha,
Try with hook_preprocess_block() and find you custom menu block then try to dump the $menu_tree, find below code snippet.
Hope this will work.function hook_preprocess_block(&$variables) { // Identify the block you want to modify. $block_id = $variables['elements']['#plugin_id']; // Check if this is the block you want to target by its machine name. if ($block_id == '<machine_name>') { $menu_tree = $variables['content']['content']['#tree']; } }
- 🇺🇸United States smustgrave
This kind of question is probably more suited for forum like stackoverflow, as mentioned in #4
Thanks @r.shaikh for answering though.