summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoris Vercammen2015-10-09 14:55:38 (GMT)
committerJoris Vercammen2015-10-09 14:55:38 (GMT)
commit9fac62c4eafc5b62f7d4111936ef0b667f2eb7fc (patch)
treed3218e3f73f60e5c5fb291545af292ff81e1f64f
parentdfe3d507b279c5b8c000d5af1a9f5949a4bbfb5a (diff)
so yeah that ensures services don't get serialized when the object that has the services injected is serialized8.x-1.x-facet_source
-rw-r--r--src/Plugin/facetapi/facet_source/SearchApiViews.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Plugin/facetapi/facet_source/SearchApiViews.php b/src/Plugin/facetapi/facet_source/SearchApiViews.php
index 7be5c4d..51add21 100644
--- a/src/Plugin/facetapi/facet_source/SearchApiViews.php
+++ b/src/Plugin/facetapi/facet_source/SearchApiViews.php
@@ -7,15 +7,14 @@
namespace Drupal\facetapi\Plugin\facetapi\facet_source;
+use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\facetapi\FacetInterface;
use Drupal\facetapi\FacetSource\FacetSourceInterface;
use Drupal\facetapi\FacetSource\FacetSourcePluginBase;
use Drupal\search_api\Plugin\views\query\SearchApiQuery;
-use Drupal\views\Entity\View;
use Drupal\views\Views;
-use Symfony\Component\DependencyInjection\ContainerInterface;
/**
@@ -30,6 +29,8 @@ class SearchApiViews extends FacetSourcePluginBase {
use StringTranslationTrait;
+ use DependencySerializationTrait;
+
/**
* The entity manager.
*