You are here

protected constant CshsGroupByRootFormatter::SORT_FUNCTIONS in Client-side Hierarchical Select 8.3

The list of PHP functions that sort an array by key.

NOTES:

  • the function must modify the argument by reference;
  • the function argument must be an associative array because sorting happens by keys.

See also

\krsort()

\ksort()

File

src/Plugin/Field/FieldFormatter/CshsGroupByRootFormatter.php, line 97

Class

CshsGroupByRootFormatter
Plugin implementation of the "Group by root" formatter.

Namespace

Drupal\cshs\Plugin\Field\FieldFormatter

Code

protected const SORT_FUNCTIONS = [
  self::SORT_DESC => '\\krsort',
  self::SORT_ASC => '\\ksort',
];