Submitted by manoj on

We can find all block id's with the following ways.

using drush

 

drush ev "print_r(array_keys(\Drupal::service('plugin.manager.block')->getDefinitions()));"

 

programmatically

 

kint(array_keys(\Drupal::service('plugin.manager.block')->getDefinitions()));