Filters_Custom_Normalizer implements Registerable, Standard_Service

Delegates saved custom-filter normalization to Document Library Core.

The settings UI stores filters_custom as an array of objects [{name, slug}], but runtime args expect a comma-separated filter list with optional labels. This service hooks into the site default args filter to normalize the value before it enters the Table_Args parsing chain.

Tags
todo

This file is here temporarily until the tables refactor.

author

Barn2 Plugins [email protected]

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

normalize_filters_custom()  : array<string|int, mixed>
Normalize filters_custom while preserving labels and order.
register()  : void
{@inheritdoc}

Methods

normalize_filters_custom()

Normalize filters_custom while preserving labels and order.

public normalize_filters_custom(array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
$options : array<string|int, mixed>

The site default arguments.

Tags
Return values
array<string|int, mixed> —

The modified site default arguments.

Search results