Retrieve unique block ID or machine name in build ... - Drupal
Is it possible to retrieve the unique block id or the machine name in the build() method of a block? When creating multiple instances of the same block definition I can't manage to get a unique value per block from within the block methods (like for example the ID that gets appended to the machine name or the machine name itself). I tried out all methods and properties of the BlockBase class ...
Get Price