Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By MaWe4585 on
I created a block that is shown on the page of a custom entity type. Now I want to access the context since all Blocks seem to be context aware. However the context is empty. I debugged to the line I wanted to read the context value and then I saw that the context is completely empty.
What do I have to do that my Block has a Context? Can someone provide a Basic Example of a Block using the context it knows?