Skip to content
Snippets Groups Projects
Commit cffb0c6e authored by Fran Garcia-Linares's avatar Fran Garcia-Linares Committed by Fran Garcia-Linares
Browse files

Only map if available.

parent 7ffed1a9
No related branches found
Tags 7.x-2.0-beta1
No related merge requests found
......@@ -117,6 +117,10 @@ class MockDrupalDotOrg extends PluginBase implements ProjectBrowserSourceInterfa
* {@inheritdoc}
*/
public function getProjects(array $query = []) : ProjectsResultsPage {
// https://www.drupal.org/project/project_browser/issues/3279676
if (!empty($query['categories'])) {
$query['taxonomy_vocabulary_3'] = $query['categories'];
}
$api_response = $this->fetchProjects($query);
// Iterate through and turn each into a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment