Skip to content
Snippets Groups Projects
Commit b6450dfd authored by Jonathan Sacksick's avatar Jonathan Sacksick
Browse files

D10 compatibility.

parent 61cd08be
Branches
Tags
No related merge requests found
name: 'JSON:API Search API' name: 'JSON:API Search API'
description: "Exposes Search API indexes over JSON:API Resources." description: "Exposes Search API indexes over JSON:API Resources."
core: 8.x core_version_requirement: ^9.1 || ^10
core_version_requirement: ^8 || ^9
type: module type: module
dependencies: dependencies:
- drupal:jsonapi - drupal:jsonapi
......
name: 'JSON:API Search API Facets' name: 'JSON:API Search API Facets'
type: module type: module
description: 'Provides Facet integration with JSON:API Search API.' description: 'Provides Facet integration with JSON:API Search API.'
core: 8.x core_version_requirement: ^9.1 || ^10
core_version_requirement: ^8 || ^9
dependencies: dependencies:
- jsonapi_search_api:jsonapi_search_api - jsonapi_search_api:jsonapi_search_api
- facets:facets - facets:facets
...@@ -45,7 +45,7 @@ final class IndexFacetsTest extends BrowserTestBase { ...@@ -45,7 +45,7 @@ final class IndexFacetsTest extends BrowserTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected function setUp() : void {
parent::setUp(); parent::setUp();
// Set up example structure and content and populate the test index with // Set up example structure and content and populate the test index with
......
...@@ -128,7 +128,7 @@ final class IndexResource extends EntityResourceBase implements ContainerInjecti ...@@ -128,7 +128,7 @@ final class IndexResource extends EntityResourceBase implements ContainerInjecti
// Dispatch an event to allow other modules to modify the meta. // Dispatch an event to allow other modules to modify the meta.
$event = new AddSearchMetaEvent($query, $results, $meta); $event = new AddSearchMetaEvent($query, $results, $meta);
$meta = $this->eventDispatcher->dispatch(Events::ADD_SEARCH_META, $event)->getMeta(); $meta = $this->eventDispatcher->dispatch($event, Events::ADD_SEARCH_META)->getMeta();
$response = $this->createJsonapiResponse($primary_data, $request, 200, [], $pager_links, $meta); $response = $this->createJsonapiResponse($primary_data, $request, 200, [], $pager_links, $meta);
$response->addCacheableDependency($cacheability); $response->addCacheableDependency($cacheability);
return $response; return $response;
......
...@@ -41,7 +41,12 @@ final class IndexResourceTest extends BrowserTestBase { ...@@ -41,7 +41,12 @@ final class IndexResourceTest extends BrowserTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function setUp() { protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp(); parent::setUp();
// Set up example structure and content and populate the test index with // Set up example structure and content and populate the test index with
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment