Problem/Motivation

After dispatching SearchApiEvents::INDEXING_ITEMS event (Index::indexSpecificItems) the set items in the event are lost.

Proposed resolution

    $event = new IndexingItemsEvent($this, $items);
    \Drupal::getContainer()->get('event_dispatcher')
      ->dispatch(SearchApiEvents::INDEXING_ITEMS, $event);
    $items = $event->getItems();
CommentFileSizeAuthor
#2 search_api-get_items-3198944-2.patch568 bytesbogdan.racz

Comments

bogdan.racz created an issue. See original summary.

bogdan.racz’s picture

StatusFileSize
new568 bytes

Please review!

bogdan.racz’s picture

Status: Active » Needs review
drunken monkey’s picture

Status: Needs review » Fixed

You’re right, that is definitely an oversight. Thanks a lot for noticing!
Committed.

drunken monkey’s picture

Component: General code » Framework

Status: Fixed » Closed (fixed)

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