Provide "entity usage" block, which shows where the current entity is being used

Created on 3 December 2019, about 5 years ago
Updated 10 November 2023, about 1 year ago

Currently usage data is visible on entity usage page. For some pages it may be useful to display it also in a entity usage block.

Tamar Peled started and I finished implementation of that functionality for Government of Flanders

I would like to propose patch, which will add entity usage block to entity_usage as submodule. Why submodule? It's because it depends on entity route context . But, if it's ok to add that dependency to entity usage, it's not a problem to convert the code to be part of it.

Features of the module:

  • Provide entity usage block, which will display current entity usage data.
  • Block allows to customize few configuration options:

    For first two options, entity route context is required. Last two allows to decide how data should be displayed. As simple list, or list grouped by entity type & bundle.

  • Block is cached. It may be useful to take a look into that part to module, when fixing problems with caching of entity usage page. I have a feeling, that part of code responsible for caching may be shared between usage page and usage block.

The code was reviewed by Wim Leers and Raf Philtjens . Thank you guys for all your support and knowledge! :)

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇵🇱Poland gugalamaciek

Live updates comments and jobs are added and updated live.
  • Needs screenshots

    The change alters the user interface, so before and after screenshots should be added to document the UI change. Make sure to capture the relevant region only. Use a tool such as Aviary on Windows or Skitch on Mac OS X.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024