Support non content entity datasources
Closes #3575999
TODO
- The backport of #3487487 to 1.0.x (happened in #3584014 (closed)) introduced a new
\Drupal\ai_search\Plugin\EmbeddingStrategy\EmbeddingBase::isTitleInContextual()which not yet available in 2.0.x, when that becomes available it also has to be fine tuned with:
- if ($datasource) {
+ if ($datasource instanceof ContentEntity) {- If #3584042 gets merged first than extend test coverage to verify access checking performed on items returns by the custom data source
Edited by Dezső Biczó