You are here

public function SolrConnectorPluginBase::setEventDispatcher in Search API Solr 4.x

Sets the event dispatcher.

Parameters

\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $eventDispatcher:

Overrides SolrConnectorInterface::setEventDispatcher

File

src/SolrConnector/SolrConnectorPluginBase.php, line 83

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function setEventDispatcher(ContainerAwareEventDispatcher $eventDispatcher) : SolrConnectorInterface {
  $this->eventDispatcher = $eventDispatcher;
  return $this;
}