\Drupal\strata\Plugin\views\filter EnumFilter

Filters on a stored enum value, offering only the values that exist.

A string filter on the realm column asks an operator to type keyvalue and get it right. This offers the set instead, labelled, which is both easier and impossible to typo - and the set comes from the enum itself, so a realm added in a later release appears here without anything being updated.

There is a subclass per column rather than one filter for all four because ViewsFilter is not a repeatable attribute, so a plugin id needs a class of its own.

Summary

Methods
Properties
Constants
getValueOptions
No public properties found
No public constants found
options
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Methods

getValueOptions()

getValueOptions() : array<string|int,string>

{@inheritdoc}

Returns

array

Stored value keyed to label.

options()

options() : array<string|int,string>

The values this column can hold.

Returns

array

Stored value keyed to label.