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

drupal twig
ed
Ed Phillis

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