You are here

public function FacetCloneForm::__construct in Facets 8

Creates the class.

Parameters

\Drupal\facets\FacetSource\FacetSourcePluginManager $facetSourcePluginManager: The facet source plugin manager.

\Drupal\search_api\Display\DisplayPluginManager $displayPluginManager: Search api's display plugin manager.

\Drupal\Core\Entity\EntityStorageInterface $facetStorage: Entity storage class.

File

src/Form/FacetCloneForm.php, line 48

Class

FacetCloneForm
Provides a form for creating and editing facets.

Namespace

Drupal\facets\Form

Code

public function __construct(FacetSourcePluginManager $facetSourcePluginManager, DisplayPluginManager $displayPluginManager, EntityStorageInterface $facetStorage) {
  $this->facetSourcePluginManager = $facetSourcePluginManager;
  $this->displayPluginManager = $displayPluginManager;
  $this->facetStorage = $facetStorage;
}