Problem/Motivation
SelectionPluginManager does:
$this->alterInfo('entity_reference_selection');
But I can't find hook_entity_reference_selection_alter documented in any api.php file.
Steps to reproduce
Proposed resolution
Write the documentation. This should go in core/lib/Drupal/Core/Entity/entity.api.php.
Use another alter hook for a plugin type as a template, e.g. hook_views_plugins_access_alter
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | 3453692-nr-bot.txt | 693 bytes | needs-review-queue-bot |
| #20 | 3453692-nr-bot.txt | 693 bytes | needs-review-queue-bot |
Issue fork drupal-3453692
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
Comment #2
prabha1997 commentedI am working on this documentation
Comment #4
prabha1997 commentedComment #5
joachim commentedThere's something wrong with your MR -- it's saying 1000+ changes!
Are you sure your branches are correct?
Comment #7
quietone commentedComment #8
dxvargas commentedI'm extremely confused with the MR that I see related with this issue. So many commits... why?
As I understand we simply need to add something like this to
lib/Drupal/Core/Entity/entity.api.php:What am I missing?
Comment #11
joachim commented> I'm extremely confused with the MR that I see related with this issue. So many commits... why?
That can happen when the target branch set on the MR and the actual parent branch of the MR branch are not the same.
Comment #12
xdequinzeI was working on this issue with nhojivar7 at DrupalCon Barcelona contribution's day.
Comment #13
isa.belThe documentation from MR 9634 seems complete and correct now, I will set this to Needs Review
Comment #14
smustgrave commentedCan 1 MR be closed or hidden.
Also may want to check usage as I don't see anything in core besides a test using this hook. Maybe it's not needed?
Comment #15
joachim commented> Also may want to check usage as I don't see anything in core besides a test using this hook. Maybe it's not needed?
It's standard for all plugin managers to have an alter hook for the discovered plugin info.
Comment #19
isa.belMR 1 hidden, but I can't close it
Comment #20
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #21
isa.belI checked the PR and all the checks passed, therefore I'm changing this to needs review again.
Comment #22
joachim commentedLGTM!
Comment #23
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #24
isa.belIt's not possible to run phpstan in this file
Comment #25
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #26
joachim commentedComment #27
smustgrave commentedThe bot may be correct, MR is 1800 commits back
Comment #28
smustgrave commentedI imagine the bot is complaining there’s no return of void
Comment #29
quietone commentedThis needs one small change, see the comment in the MR.
Comment #31
agunjan085 commentedComment #32
joachim commentedLGTM
Comment #36
quietone commentedCommitted to 11.2.x and 11.x
Thanks!
Comment #38
joachim commentedThanks! As a docs-only fix, can this be committed to the 10 branch too?