Commit eb580b8e authored by marthinal's avatar marthinal

#2612084 correct namespace

parent c01950a1
......@@ -17,7 +17,7 @@ function core_search_facetapi_query_search_node_search_alter(AlterableInterface
$request = \Drupal::requestStack()->getMasterRequest();
$search_page = $request->attributes->get('entity');
/** @var \Drupal\facetapi\FacetManager\DefaultFacetManager $facet_manager */
$facet_manager = \Drupal::service('facetapi.core_manager');
$facet_manager = \Drupal::service('core_search_facetapi.core_manager');
$search_id = 'core_search:' . $search_page->id();
// Sets search keys and adds active filters.
......
services:
core_search_facetapi.core_manager:
class: Drupal\core_search_facetapi\FacetManager\CoreSearchFacetManager
arguments:
- '@plugin.manager.facetapi.query_type'
- '@plugin.manager.facetapi.widget'
- '@plugin.manager.facetapi.facet_source'
- '@plugin.manager.facetapi.processor'
- '@plugin.manager.facetapi.empty_behavior'
- '@entity_type.manager'
<?php
namespace Drupal\facetapi;
namespace Drupal\core_search_facetapi;
use Drupal\search\SearchQuery;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\facetapi\Plugin\facet_api\facet_source\CoreSearchFacetSource
* Contains \Drupal\core_search_facetapi\Plugin\facet_api\facet_source\CoreSearchFacetSource
*/
namespace Drupal\facetapi\Plugin\facetapi\facet_source;
namespace Drupal\core_search_facetapi\Plugin\facetapi\facet_source;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\Form\FormStateInterface;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\facetapi\Plugin\facet_api\facet_source\CoreSearchFacetSourceDeriver.
* Contains \Drupal\core_search_facetapi\Plugin\facet_api\facet_source\CoreSearchFacetSourceDeriver.
*/
namespace Drupal\facetapi\Plugin\facetapi\facet_source;
namespace Drupal\core_search_facetapi\Plugin\facetapi\facet_source;
use Drupal\Component\Plugin\PluginBase;
use Drupal\facetapi\FacetSource\FacetSourceDeriverBase;
......
......@@ -2,15 +2,14 @@
/**
* @file
* Contains \Drupal\facetapi\Plugin\facetapi\query_type\CoreSearchString.
* Contains \Drupal\core_search_facetapi\Plugin\facetapi\query_type\CoreSearchString.
*/
namespace Drupal\facetapi\Plugin\facetapi\query_type;
namespace Drupal\core_search_facetapi\Plugin\facetapi\query_type;
use Drupal\facetapi\QueryType\QueryTypePluginBase;
use Drupal\facetapi\Result\Result;
/**
*
* @FacetApiQueryType(
......@@ -89,7 +88,7 @@ class CoreSearchString extends QueryTypePluginBase {
return $build;
*/
$facet_query = $facet_manager = \Drupal::service('facetapi.core_manager')->getFacetQueryExtender();
$facet_query = $facet_manager = \Drupal::service('core_search_facetapi.core_manager')->getFacetQueryExtender();
$facet_query->addFacetField([
'fields' => [
'n.' . 'type' => [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment