-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2919 from 10up/feature/facet-types
Move taxonomy facets to a separate class
- Loading branch information
Showing
15 changed files
with
770 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* Taxonomy facet type | ||
* | ||
* @since 4.3.0 | ||
* @package elasticpress | ||
*/ | ||
|
||
namespace ElasticPress\Feature\Facets; | ||
|
||
/** | ||
* Abstract Facet type class | ||
* | ||
* Keeping this as an abstract class (and not an interface) to make | ||
* the implementation of common methods easier. | ||
*/ | ||
abstract class FacetType { | ||
|
||
/** | ||
* Setup hooks and filters for feature | ||
*/ | ||
abstract public function setup(); | ||
|
||
/** | ||
* Get the facet filter name. | ||
* | ||
* @return string The filter name. | ||
*/ | ||
abstract public function get_filter_name() : string; | ||
|
||
/** | ||
* Get the facet filter type. | ||
* | ||
* @return string The filter name. | ||
*/ | ||
abstract public function get_filter_type() : string; | ||
} |
Oops, something went wrong.