function DatabaseDriverList::sortByName
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Extension/DatabaseDriverList.php \Drupal\Core\Extension\DatabaseDriverList::sortByName()
Array sorting callback; sorts extensions by their name.
Parameters
\Drupal\Core\Extension\Extension $a: The first extension to compare.
\Drupal\Core\Extension\Extension $b: The second extension to compare.
Return value
int Less than 0 if $a is less than $b, more than 0 if $a is greater than $b, and 0 if they are equal.
Overrides ExtensionList::sortByName
File
-
core/
lib/ Drupal/ Core/ Extension/ DatabaseDriverList.php, line 226
Class
- DatabaseDriverList
- Provides a list of available database drivers.
Namespace
Drupal\Core\ExtensionCode
public static function sortByName(Extension $a, Extension $b) : int {
throw new \LogicException(__METHOD__ . '() is not implemented');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.