public function Facet::getHierarchy in Facets 8
Returns the facet hierarchy definition.
Return value
array An associative array with the following structure:
- id: The hierarchy plugin id as a string.
- config: The widget configuration as an array.
Overrides FacetInterface::getHierarchy
1 call to Facet::getHierarchy()
- Facet::getHierarchyInstance in src/
Entity/ Facet.php - Returns the facet hierarchy instance.
File
- src/
Entity/ Facet.php, line 391
Class
- Facet
- Defines the facet configuration entity.
Namespace
Drupal\facets\EntityCode
public function getHierarchy() {
// TODO: do not hardcode on taxonomy, make this configurable (or better,
// autoselected depending field type).
return [
'type' => 'taxonomy',
'config' => [],
];
}