" instead of "=". * * @return bool * A boolean flag indicating if search should exlude selected facets */ public function getExclude(); /** * Returns the value of the use_hierarchy boolean. * * This will return true when the results in the facet should be rendered in * a hierarchical structure. * * @return bool * A boolean flag indicating if results should be rendered using hierarchy. */ public function getUseHierarchy(); /** * Sets the use_hierarchy. * * @param bool $use_hierarchy * A boolean flag indicating if results should be rendered using hierarchy. */ public function setUseHierarchy($use_hierarchy); /** * Returns the value of the keep_hierarchy_parents_active boolean. * * This will return true when the parent results of a hierarchical facet * should be kept active when a child becomes active. * * @return bool * A boolean flag indicating if the parent results of a hierarchical facet * should be kept active when a child becomes active. */ public function getKeepHierarchyParentsActive(); /** * Sets the keep_hierarchy_parents_active. * * @param bool $keep_hierarchy_parents_active * A boolean flag indicating if the parent results of a hierarchical facet * should be kept active when a child becomes active. */ public function setKeepHierarchyParentsActive($keep_hierarchy_parents_active); /** * Returns the value of the expand_hierarchy boolean. * * This will return true when the results in the facet should be expanded in * a hierarchical structure, regardless of active state. * * @return bool * Wether or not results should always be expanded using hierarchy. */ public function getExpandHierarchy(); /** * Sets the expand_hierarchy. * * @param bool $expand_hierarchy * Wether or not results should always be expanded using hierarchy. */ public function setExpandHierarchy($expand_hierarchy); /** * Returns the value of the enable_parent_when_child_gets_disabled boolean. * * This will return true when the parent item in the facet should be enabled * in an hierarchical structure, when a child facet item gets disabled. * * @return bool * Wether or not parents should be enabled when a child gets disabled. */ public function getEnableParentWhenChildGetsDisabled(); /** * Sets the enable_parent_when_child_gets_disabled. * * @param bool $enable_parent_when_child_gets_disabled * Wether or not parents should be enabled when a child gets disabled. */ public function setEnableParentWhenChildGetsDisabled($enable_parent_when_child_gets_disabled); /** * Sets a string representation of the Facet source plugin. * * This is usually the name of the Search-api view. * * @param string $facet_source_id * The facet source id. */ public function setFacetSourceId($facet_source_id); /** * Sets the query operator. * * @param string $operator * The query operator being used. */ public function setQueryOperator($operator); /** * Sets the hard limit of facet items. * * @param int $limit * Hard limit of the facet. */ public function setHardLimit($limit); /** * Sets the exclude. * * @param bool $exclude * A boolean flag indicating if search should exclude selected facets. */ public function setExclude($exclude); /** * Returns the Facet source id. * * @return string * The id of the facet source. */ public function getFacetSourceId(); /** * Returns the plugin instance of a facet source. * * @return \Drupal\facets\FacetSource\FacetSourcePluginInterface|null * The plugin instance for the facet source. */ public function getFacetSource(); /** * Returns the facet source configuration object. * * @return \Drupal\facets\FacetSourceInterface * A facet source configuration object. */ public function getFacetSourceConfig(); /** * Loads the facet sources for this facet. * * @param bool $only_enabled * Only return enabled facet sources. * * @return \Drupal\facets\FacetSource\FacetSourcePluginInterface[] * An array of facet sources. */ public function getFacetSources($only_enabled = TRUE); /** * Returns an array of processors with their configuration. * * @param bool $only_enabled * Only return enabled processors. * * @return \Drupal\facets\Processor\ProcessorInterface[] * An array of processors. */ public function getProcessors($only_enabled = TRUE); /** * Loads this facets processors for a specific stage. * * @param string $stage * The stage for which to return the processors. One of the * \Drupal\facets\Processor\ProcessorInterface::STAGE_* constants. * @param bool $only_enabled * (optional) If FALSE, also include disabled processors. Otherwise, only * load enabled ones. * * @return \Drupal\facets\Processor\ProcessorInterface[] * An array of all enabled (or available, if if $only_enabled is FALSE) * processors that support the given stage, ordered by the weight for that * stage. */ public function getProcessorsByStage($stage, $only_enabled = TRUE); /** * Retrieves this facets's processor configs. * * @return array * An array of processors and their configs. */ public function getProcessorConfigs(); /** * Sets the "only visible when facet source is visible" boolean flag. * * @param bool $only_visible_when_facet_source_is_visible * A boolean flag indicating if the facet should be hidden on a page that * does not show the facet source. */ public function setOnlyVisibleWhenFacetSourceIsVisible($only_visible_when_facet_source_is_visible); /** * Returns the "only visible when facet source is visible" boolean flag. * * @return bool * True when the facet is only shown on a page with the facet source. */ public function getOnlyVisibleWhenFacetSourceIsVisible(); /** * Adds a processor for this facet. * * @param array $processor * An array definition for a processor. */ public function addProcessor(array $processor); /** * Removes a processor for this facet. * * @param string $processor_id * The plugin id of the processor. */ public function removeProcessor($processor_id); /** * Defines the no-results behavior. * * @param array $behavior * The definition of the behavior. */ public function setEmptyBehavior(array $behavior); /** * Returns the defined no-results behavior or NULL if none defined. * * @return array|null * The behavior definition or NULL. */ public function getEmptyBehavior(); /** * Returns the weight of the facet. */ public function getWeight(); /** * Sets the weight of the facet. * * @param int $weight * Weight of the facet. */ public function setWeight($weight); /** * Sets the minimum count of the result to show. * * @param int $min_count * Minimum count. */ public function setMinCount($min_count); /** * Returns the minimum count of the result to show. * * @return int * Minimum count. */ public function getMinCount(); /** * Sets the missing parameter. * * @param bool $missing * Whether to show a missing item or not. */ public function setMissing(bool $missing); /** * Returns the missing parameter. * * @return bool * Minimum count. */ public function isMissing(): bool; /** * Sets the missing parameter label. * * @param string $label * The label. */ public function setMissingLabel(string $label); /** * Returns the missing parameter label. * * @return string * The label. */ public function getMissingLabel(): string; }