mini\Database\Virtual\Collation::getIdentifier() Method

public static

Signature

public static function getIdentifier(Collator $collator): string

Parameters

Name Type Default Description
$collator Collator required Documentation missing

Returns

string

Documentation

Get collator identifier for comparison

Returns a unique string identifying the collator configuration. Used to check if two collators are compatible.

Uses canonicalized locale to handle equivalent locales:

  • 'no_NO' and 'nb_NO' both canonicalize to 'nb_NO'
  • 'iw_IL' and 'he_IL' both canonicalize to 'he_IL'

Source

src/Database/Virtual/Collation.php:137-143