In Drupal 8, is there a way to figure out what current block or view machine name you should use?
For example, with the following code, I noticed that
'machine_name_to_determine' could change depending on how many times you have used your block.
$block_id = 'machine_name_to_determine'; $block_config = \Drupal\block\Entity\Block::load($block_id);
I need a way to retrieve this at run-time. How can I retrieve it?