Create an example search plugin for the Content Entity Example for integrating custom entity data into the core search system.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | example-search-plugin-2643048-7-D8.patch | 35.64 KB | kentr |
| #3 | example-search-plugin-2643048-3-D8.patch | 33.3 KB | kentr |
Issue fork examples-2643048
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
kentr commentedComment #3
kentr commentedComment #4
jkopel commentedPatch intalls cleanly.
Should probably include some documentation indicating what the plugin does at content_entity_example_contact/list and also indicate that one has to add a search page for "content entity example contacts" in order to make use of the plugin.
The patch introduces an error when creating search pages in the UI (for any entity type).
To reproduce:
1. Apply patch
2. Enable content_entity_example
3. Add a search page
This seems to happen regardless of which entity type I try to add a search page for.
The pages do get created, and the plugin/search seems to work just fine once the page is there.
Comment #5
mile23Could we make this into a separate module which depends on content_entity_example?
That way we can do a better job of illustrating only one thing with each module.
Comment #6
kentr commentedGood point.
Comment #7
kentr commentedThis patch:
search_plugin_example.content_entity_example_contact/list.I couldn't reproduce the error mentioned in #4 when testing on core `8.0.3`.
Comment #9
kentr commentedI don't know why the patch failed testing. In manual testing, it applied and worked as expected without introducing errors.
Unassigning myself from the issue until I have more time to work on it.
Comment #10
mile23It seems some of this patch made its way to https://www.drupal.org/docs/8/api/entity-api/making-the-content-entity-s... (or vice-versa).
Comment #11
avpadernoComment #13
avpadernoComment #14
avpadernoSince the Search module is going to be deprecated and removed from Drupal core, and since a search plugin is a plugin, I am closing this issue as outdated.