You are here

facetapi_pretty_paths_adapter_base_path_provider.inc in Facet API Pretty Paths 7

A Facet API Adapter based base path provider.

File

plugins/base_path_provider/facetapi_pretty_paths_adapter_base_path_provider.inc
View source
<?php

/**
 * @file
 * A Facet API Adapter based base path provider.
 */

/**
 * Facet API Adapter based FacetApiPrettyPathsBasePathProvider.
 */
class FacetApiPrettyPathsAdapterBasePathProvider implements FacetApiPrettyPathsBasePathProvider {

  /**
   * @param FacetapiUrlProcessorPrettyPaths $urlProcessor
   * @return base path.
   */
  public function getBasePath(FacetapiUrlProcessorPrettyPaths $urlProcessor) {
    return $urlProcessor
      ->getAdapter()
      ->getSearchPath();
  }

}

Classes

Namesort descending Description
FacetApiPrettyPathsAdapterBasePathProvider Facet API Adapter based FacetApiPrettyPathsBasePathProvider.