Using the block_example module, I created two instances of the example_configurable_text block in the UI and would like to now access their underlying metadata, specifically uuids. By looking at the config table in the database, I can see that there is a record for each (
select * from config where name like "%example%";). However, when I debug
ExampleConfigurableTextBlock::build, I can't seem to access any of it.
I'm aware that configuration can be loaded via
\Drupal::config('<name>'), but I need to be able to access the configuration dynamically from with my plugin class instance.
Is extending BlockBase the right way to go? Do I need to use derivatives? What is the connection between a block instance in the config table and an instance of a block plugin? So many questions.