You are here

public function FacetsUrlGenerator::__construct in Facets 8

Constructs a new instance of the FacetsUrlGenerator.

Parameters

\Drupal\facets\UrlProcessor\UrlProcessorPluginManager $urlProcessorPluginManager: The url processor plugin manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

File

src/Utility/FacetsUrlGenerator.php, line 36

Class

FacetsUrlGenerator
Facets Url Generator service.

Namespace

Drupal\facets\Utility

Code

public function __construct(UrlProcessorPluginManager $urlProcessorPluginManager, EntityTypeManagerInterface $entityTypeManager) {
  $this->urlProcessorPluginManager = $urlProcessorPluginManager;
  $this->facetStorage = $entityTypeManager
    ->getStorage('facets_facet');
}