Problem/Motivation

Add Bundle to columns in Usage statistics

Proposed resolution

add entity.bundle to entity-usage-overview-page.html.twig

Remaining tasks

create patch

User interface changes

new column displayed

API changes

none

Data model changes

none

CommentFileSizeAuthor
#3 new-column.png111.7 KBjannakha
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jannakha created an issue. See original summary.

jannakha’s picture

Status: Active » Needs review
StatusFileSize
new111.7 KB

Added column with bundle for more info:
new column

MR ready for review

keshav patel made their first commit to this issue’s fork.

keshav patel’s picture

Thanks @jannakha,

I made few adjustments and merged the changes, the changes are now available on latest release. i.e. 1.0.8.

Closing this issue.

keshav patel’s picture

Status: Needs review » Fixed
jannakha’s picture

thanks for releasing this feature!

jannakha’s picture

Status: Fixed » Needs work

ah, that's why we should stick to RTBS process
I just tested latest release on a clean D11 installation.
drupal_entity is twig tweak's function, so if this module is not installed there's an exception:

Twig\Error\SyntaxError: Unknown "drupal_entity" function. in Twig\ExpressionParser->getFunction() (line 20 of /Users/jm/work/d11.local/web/modules/contrib/entity_usage_explorer/templates/entity-usage-overview-page.html.twig).

so basically, instead of using drupal_entity - define a new twig function getEntity (similar to getEntityLabel)

keshav patel’s picture

Oh, I missed reviewing the dependency.

Here you go: 1.0.9

keshav patel’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.