* Provides a processor that only shows deepest level items.
* Provides a processor that adds all siblings of the active item to the result.
*
* @FacetsProcessor(
* id = "show_siblings_processor",
* label = @Translation("Show siblings"),
* description = @Translation("Show all siblings of a hierarchical facet item. In 'Advanced settings' this processor should be executed early in the processor chain, for example before ids get converted into titles. It is recommended to enable 'Use hierarchy' and 'Ensure that only one result can be displayed', too."),
* description = @Translation("Show all siblings of a hierarchical facet item. In 'Advanced settings' this processor should be executed early in the processor chain, for example before the URL handler and before ids get converted into titles. It is recommended to enable 'Use hierarchy' and 'Ensure that only one result can be displayed', too."),
* stages = {
* "build" = 40
* "build" = 11
* }
* )
*/
@@ -30,11 +31,36 @@ class ShowSiblingsProcessor extends ProcessorPluginBase implements BuildProcesso
'#description'=>$this->t('If selected the siblings of all (inactive) parents of an active item will be added be shown. Otherwise only the siblings of active items will be shown. (See "Keep hierarchy parents active".)'),