Drupal 8 Theming: Finding Block Id for use with Twig Tweak

07/23/2020 - 10:26
Drupal
Theming
I was struggling to find the relevant block ids for use within twig templates and came across this here:
drush ev "print_r(array_keys(\Drupal::service('plugin.manager.block')->getDefinitions()));"
If you know part of the name then you can pipe it out with grep as so:
drush ev "print_r(array_keys(\Drupal::service('plugin.manager.block')->getDefinitions()));" | grep branding