API page: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!entity.api...

Enter a descriptive title (above) relating to function hook_entity_access, then describe the problem you have found:

The $operation description is below $account instead of $operation

CommentFileSizeAuthor
#3 3183712-3.patch904 bytesidebr

Comments

B2F created an issue. See original summary.

b2f’s picture

Issue summary: View changes
idebr’s picture

Title: Order of hook_entity_access parameters is wrong. » hook_entity_access $operation description is listed under $account
Version: 8.9.x-dev » 9.2.x-dev
Status: Active » Needs review
StatusFileSize
new904 bytes

Ah, that is one misleading description indeed.

Attached patch fixes the description for $operation so it correctly lists the usual options.

b2f’s picture

Status: Needs review » Reviewed & tested by the community

  • catch committed 547d8a2 on 9.2.x
    Issue #3183712 by idebr, B2F: hook_entity_access $operation description...

  • catch committed 42f5205 on 9.1.x
    Issue #3183712 by idebr, B2F: hook_entity_access $operation description...
catch’s picture

Version: 9.2.x-dev » 9.1.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 9.2.x and 9.1.x, thanks!

Status: Fixed » Closed (fixed)

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