Problem/Motivation

Instead of from route match, I'd like to get the entity from a request object instead. I'd also like to limit my results to only if the route name matches a certain value like entity.*.canonical to only give me the value on a canonical entity route.

Issue fork helper-3594003

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

dave reid created an issue. See original summary.

dave reid’s picture

Status: Active » Needs review

  • dave reid committed 522e665f on 8.x-1.x
    feat: #3594003 Added CurrentEntity::fromRequest() and Utility::...
dave reid’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • dave reid committed 522e665f on 2.x
    feat: #3594003 Added CurrentEntity::fromRequest() and Utility::...

Status: Fixed » Closed (fixed)

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